'zfs_receive_013_pos']
# DISABLED:
-# zfs_rename_002_pos - needs investigation
-# zfs_rename_005_neg - nested pools
# zfs_rename_006_pos - needs investigation
-# zfs_rename_007_pos - needs investigation
[tests/functional/cli_root/zfs_rename]
-tests = ['zfs_rename_001_pos', 'zfs_rename_003_pos',
- 'zfs_rename_004_neg', 'zfs_rename_008_pos', 'zfs_rename_009_neg',
+tests = ['zfs_rename_001_pos', 'zfs_rename_002_pos', 'zfs_rename_003_pos',
+ 'zfs_rename_004_neg', 'zfs_rename_005_neg',
+ 'zfs_rename_007_pos', 'zfs_rename_008_pos', 'zfs_rename_009_neg',
'zfs_rename_010_neg', 'zfs_rename_011_pos', 'zfs_rename_012_neg',
'zfs_rename_013_pos']
if is_global_zone; then
vol=$TESTPOOL/$TESTFS/vol.$$ ; volclone=$TESTPOOL/$TESTFS/volclone.$$
log_must $ZFS create -V 100M $vol
+ block_device_wait
obj=$(target_obj $vol)
log_must $DD if=$SRC_FILE of=$obj bs=$BS count=$CNT
snap=${vol}@snap.$$
log_must $ZFS snapshot $snap
log_must $ZFS clone $snap $volclone
+ block_device_wait
# Rename dataset & clone
log_must $ZFS rename $vol ${vol}-new
log_must $ZFS rename $volclone ${volclone}-new
+ block_device_wait
# Compare source file and target file
obj=$(target_obj ${vol}-new)
log_must $ZFS rename ${vol}-new $vol
log_must $ZFS rename $snap ${snap}-new
log_must $ZFS clone ${snap}-new $volclone
+ block_device_wait
# Compare source file and target file
obj=$(target_obj $volclone)