'rsend/rsend_024_pos': ['FAIL', '5665'],
'rsend/send-c_volume': ['FAIL', '6087'],
'snapshot/clone_001_pos': ['FAIL', known_reason],
+ 'snapshot/snapshot_009_pos': ['FAIL', '7961'],
+ 'snapshot/snapshot_010_pos': ['FAIL', '7961'],
'snapused/snapused_004_pos': ['FAIL', '5513'],
'tmpfile/setup': ['SKIP', tmpfile_reason],
'threadsappend/threadsappend_001_pos': ['FAIL', '6136'],
typeset snap=${1:-$TESTPOOL/$TESTFS@$TESTSNAP}
if ! snapexists $snap; then
- log_fail "'$snap' does not existed."
+ log_fail "'$snap' does not exist."
fi
#
typeset snap
for ds in $ctr/$TESTVOL1 $ctr/$TESTCLONE; do
- datasetexists $ds && \
- log_must zfs destroy -f $ds
+ destroy_dataset $ds "-rf"
done
for snap in $ctr/$TESTFS1@$TESTSNAP1 \
$snappool $snapvol $snapctr $snapctrvol \
$snapctrclone $snapctrfs
do
- snapexists $snap && \
- log_must zfs destroy -rf $snap
+ snapexists $snap && destroy_dataset $snap "-rf"
done
-
}
log_assert "Verify snapshot -r can correctly create a snapshot tree."
fi
log_must zfs snapshot -r $snappool
+log_must block_device_wait
#verify the snapshot -r results
for snap in $snappool $snapfs $snapvol $snapctr $snapctrvol \
{
typeset snap
- datasetexists $ctrvol && \
- log_must zfs destroy -f $ctrvol
+ destroy_dataset $ctrvol "-rf"
for snap in $ctrfs@$TESTSNAP1 \
$snappool $snapvol $snapctr $snapctrvol \
$snapctrclone $snapctrfs
do
- snapexists $snap && \
- log_must zfs destroy -rf $snap
+ snapexists $snap && destroy_dataset $snap "-rf"
done
}
fi
log_must zfs snapshot -r $snappool
+log_must block_device_wait
#select the $TESTCTR as destroy point, $TESTCTR is a child of $TESTPOOL
log_must zfs destroy -r $snapctr