/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/ |
H A D | zfs_rename_013_pos.ksh | 49 datasetexists $TESTPOOL/$TESTCTR@snap-new && \ 50 destroy_dataset $TESTPOOL/$TESTCTR@snap-new -f 52 datasetexists $TESTPOOL/$TESTCTR@snap && \ 53 destroy_dataset $TESTPOOL/$TESTCTR@snap -f 55 datasetexists $TESTPOOL@snap-new && \ 56 destroy_dataset $TESTPOOL@snap-new -f 58 datasetexists $TESTPOOL@snap && \ 59 destroy_dataset $TESTPOOL@snap -f 67 log_must zfs snapshot $TESTPOOL/$TESTCTR@snap 68 log_must zfs rename -r $TESTPOOL/$TESTCTR@snap $TESTPOOL/$TESTCTR@snap-new [all …]
|
H A D | zfs_rename_008_pos.ksh | 50 datasetexists ${datasets[$i]}@snap && \ 51 destroy_dataset ${datasets[$i]}@snap 53 datasetexists ${datasets[$i]}@snap-new && \ 54 destroy_dataset ${datasets[$i]}@snap-new 69 log_must zfs snapshot -r ${TESTPOOL}@snap 72 log_must datasetexists ${datasets[$i]}@snap 77 log_must zfs rename -r ${TESTPOOL}@snap ${TESTPOOL}@snap-new 80 log_must datasetexists ${datasets[$i]}@snap-new 85 log_must zfs destroy -rf ${TESTPOOL}@snap-new
|
H A D | zfs_rename_003_pos.ksh | 47 datasetexists $snap && destroy_dataset $snap 53 fs=$TESTPOOL/$TESTFS; snap=$fs@snap 56 log_must zfs snapshot $snap 57 log_must datasetexists $snap 61 log_must zfs rename $snap ${newname[$i]} 62 log_must datasetexists ${snap%%@*}@${newname[$i]##*@} 63 log_must zfs rename ${snap%%@*}@${newname[$i]##*@} $snap
|
H A D | zfs_rename_006_pos.ksh | 58 snap=$TESTSNAP 61 if ! snapexists $vol@$snap; then 62 log_must zfs snapshot $vol@$snap 65 rename_dataset $vol@$snap $vol@${snap}-new 67 rename_dataset ${vol}-new@${snap}-new ${vol}-new@$snap 70 clone=$TESTPOOL/${snap}_clone 71 create_clone $vol@$snap $clone 83 log_must zfs destroy $vol@$snap
|
H A D | zfs_rename_007_pos.ksh | 89 snap=${fs}@snap.$$ 90 log_must zfs snapshot $snap 91 log_must zfs clone $snap $fsclone 108 log_must zfs rename $snap ${snap}-new 109 log_must zfs clone ${snap}-new $fsclone 124 snap=${vol}@snap.$$ 125 log_must zfs snapshot $snap 126 log_must zfs clone $snap $volclone 144 log_must zfs rename $snap ${snap}-new 145 log_must zfs clone ${snap}-new $volclone
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/ |
H A D | zfs_rename_013_pos.ksh | 64 if datasetexists $TESTPOOL/$TESTCTR@snap-new ; then 65 log_must $ZFS destroy -f $TESTPOOL/$TESTCTR@snap-new 68 if datasetexists $TESTPOOL/$TESTCTR@snap ; then 69 log_must $ZFS destroy -f $TESTPOOL/$TESTCTR@snap 72 if datasetexists $TESTPOOL@snap-new ; then 73 log_must $ZFS destroy -f $TESTPOOL@snap-new 76 if datasetexists $TESTPOOL@snap ; then 77 log_must $ZFS destroy -f $TESTPOOL@snap 86 log_must $ZFS snapshot $TESTPOOL/$TESTCTR@snap 87 log_must $ZFS rename -r $TESTPOOL/$TESTCTR@snap $TESTPOOL/$TESTCTR@snap-new [all …]
|
H A D | zfs_rename_003_pos.ksh | 56 datasetexists $snap && log_must $ZFS destroy $snap 62 fs=$TESTPOOL/$TESTFS; snap=$fs@snap 65 log_must $ZFS snapshot $snap 66 log_must datasetexists $snap 70 log_must $ZFS rename $snap ${newname[$i]} 71 log_must datasetexists ${snap%%@*}@${newname[$i]##*@} 72 log_must $ZFS rename ${snap%%@*}@${newname[$i]##*@} $snap
|
H A D | zfs_rename_008_pos.ksh | 65 if datasetexists ${datasets[$i]}@snap ; then 66 log_must $ZFS destroy ${datasets[$i]}@snap 68 if datasetexists ${datasets[$i]}@snap-new ; then 69 log_must $ZFS destroy ${datasets[$i]}@snap-new 85 log_must $ZFS snapshot -r ${TESTPOOL}@snap 88 log_must datasetexists ${datasets[$i]}@snap 93 log_must $ZFS rename -r ${TESTPOOL}@snap ${TESTPOOL}@snap-new 96 log_must datasetexists ${datasets[$i]}@snap-new 101 log_must $ZFS destroy -rf ${TESTPOOL}@snap-new
|
H A D | zfs_rename_006_pos.ksh | 65 snap=$TESTSNAP 68 if ! snapexists $vol@$snap; then 69 log_must $ZFS snapshot $vol@$snap 72 rename_dataset $vol@$snap $vol@${snap}-new 74 rename_dataset ${vol}-new@${snap}-new ${vol}-new@$snap 78 for input in $VOL_R_PATH ${VOL_R_PATH}@$snap; do 85 log_must $ZFS destroy $vol@$snap
|
H A D | zfs_rename_007_pos.ksh | 104 snap=${fs}@snap.${TESTCASE_ID} 105 log_must $ZFS snapshot $snap 106 log_must $ZFS clone $snap $fsclone 123 log_must $ZFS rename $snap ${snap}-new 124 log_must $ZFS clone ${snap}-new $fsclone 138 snap=${vol}@snap.${TESTCASE_ID} 139 log_must $ZFS snapshot $snap 140 log_must $ZFS clone $snap $volclone 156 log_must $ZFS rename $snap ${snap}-new 157 log_must $ZFS clone ${snap}-new $volclone
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/ |
H A D | zfs_destroy_012_pos.ksh | 39 snap=$(eval echo \$${dstype}SNAP) 40 log_must zfs hold zfstest1 $snap 41 log_must zfs destroy -d $snap 42 log_must datasetexists $snap 43 log_must eval "[[ $(get_prop defer_destroy $snap) == 'on' ]]" 45 log_must zfs hold zfstest2 $snap 46 log_mustnot zfs hold zfstest1 $snap 47 log_mustnot zfs hold zfstest2 $snap 49 log_must zfs release zfstest1 $snap 50 log_must datasetexists $snap [all …]
|
H A D | zfs_destroy_015_pos.ksh | 47 log_must zfs snapshot $TESTPOOL/$TESTFS1@snap$i 48 snaplist=$snaplist,snap$i 53 log_mustnot snapexists $TESTPOOL/$TESFS1@snap$i 61 log_must zfs snapshot $TESTPOOL/$TESTFS1@snap$i 65 log_mustnot snapexists $TESTPOOL/$TESTFS1@snap$i 70 log_must zfs snapshot $TESTPOOL/$TESTFS1@snap$i 74 log_mustnot snapexists $TESTPOOL/$TESTFS1@snap$i 79 log_must zfs snapshot $TESTPOOL/$TESTFS1@snap$i 80 snaplist=$snaplist,snap$i 85 log_mustnot snapexists $TESTPOOL/$TESTFS1@snap$i [all …]
|
H A D | zfs_destroy_008_pos.ksh | 43 typeset snap=$1 45 log_must zfs destroy -d $snap 46 log_mustnot datasetexists $snap 52 setup_testenv snap 54 for snap in $FSSNAP $VOLSNAP; do 55 if [[ $snap == $VOLSNAP ]]; then 57 test_s_run $snap 60 test_s_run $snap
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/ |
H A D | redacted_contents.ksh | 51 log_must zfs redact $sendfs@snap book1 $clone@snap1 57 log_must zfs rollback -R $clone@snap 63 log_must zfs redact $sendfs@snap book3 $clone@snap1 67 log_must zfs rollback -R $clone@snap 73 log_must zfs redact $sendfs@snap book4 $clone@snap1 79 log_must zfs rollback -R $clone@snap 86 log_must zfs redact $sendfs@snap book5 $clone@snap1 92 log_must zfs rollback -R $clone@snap 99 log_must zfs redact $sendfs@snap book6 $clone@snap1 105 log_must zfs rollback -R $clone@snap [all …]
|
H A D | redacted_incrementals.ksh | 46 log_must zfs redact $sendfs@snap0 book1 $POOL/rm@snap $POOL/stride3@snap \ 47 $POOL/stride5@snap 65 log_must zfs redact $POOL/int@snap book2 $POOL/rm@snap 84 log_must zfs redact $POOL/int@snap book4 $POOL/rm@snap $POOL/write@snap 87 log_must zfs redact $POOL/int@snap book5 $POOL/write@snap 90 log_mustnot zfs redact $POOL/int@snap book6 $POOL/hole@snap 111 log_must zfs snapshot $POOL/hole1@snap 115 log_must zfs snapshot $POOL/write1@snap 116 log_must zfs clone $POOL/int@snap $POOL/write2 119 log_must zfs snapshot $POOL/write2@snap [all …]
|
H A D | redacted_negative.ksh | 41 log_must zfs snapshot $clone1@snap 42 log_must zfs bookmark $clone1@snap $clone1#book 44 log_must zfs snapshot $clone2@snap 47 log_must zfs redact $sendfs@snap2 book $clone1@snap 65 log_must zfs redact $sendfs@snap2 book2 $clone1@snap $clone2@snap 67 log_must zfs redact $sendfs@snap2 book3 $clone1@snap $clone2@snap 70 log_mustnot zfs redact $sendfs@snap3 $sendfs@snap3 $clone1@snap 74 log_must zfs snapshot $recvfs@snap 75 log_must zfs clone $recvfs@snap $clone3 76 log_must zfs snapshot $clone3@snap [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | recursiveflushes.sh | 35 snap() { function 50 rm -f $mntpoint/.snap/stress2.* 51 snap $mntpoint $mntpoint/.snap/stress2.1 52 snap $mntpoint $mntpoint/.snap/stress2.2 53 snap $mntpoint $mntpoint/.snap/stress2.3 54 snap $mntpoint $mntpoint/.snap/stress2.4 55 snap $mntpoint $mntpoint/.snap/stress2.5 66 rm -f $mntpoint/.snap/stress2.*
|
H A D | snap3.sh | 37 rm -f /tmp/.snap/stress2.1 38 rm -f /tmp/.snap/stress2.2 48 mksnap_ffs /tmp /tmp/.snap/stress2.1 49 mksnap_ffs /tmp /tmp/.snap/stress2.2 50 if [ -r /tmp/.snap/stress2.1 -a -r /tmp/.snap/stress2.2 ]; then 51 mdconfig -a -t vnode -f /tmp/.snap/stress2.1 -u $m1 -o readonly 52 mdconfig -a -t vnode -f /tmp/.snap/stress2.2 -u $m2 -o readonly 62 rm -f /tmp/.snap/stress2.1 /tmp/.snap/stress2.2
|
H A D | snap8.sh | 67 mksnap_ffs $mntpoint $mntpoint/.snap/snap1 68 mksnap_ffs $mntpoint $mntpoint/.snap/snap2 69 mksnap_ffs $mntpoint $mntpoint/.snap/snap3 70 mksnap_ffs $mntpoint $mntpoint/.snap/snap4 71 mksnap_ffs $mntpoint $mntpoint/.snap/snap5 72 mksnap_ffs $mntpoint $mntpoint/.snap/snap6 73 mksnap_ffs $mntpoint $mntpoint/.snap/snap7 74 mksnap_ffs $mntpoint $mntpoint/.snap/snap8 75 mksnap_ffs $mntpoint $mntpoint/.snap/snap9 82 rm -rf $mntpoint/.snap/snap? &
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/ |
H A D | zfs_receive_to_encrypted.ksh | 47 snapexists $snap && destroy_dataset $snap -f 59 typeset snap="$TESTPOOL/$TESTFS@snap" 63 log_must zfs snapshot $snap 70 log_must eval "zfs send $snap | zfs receive -u $TESTPOOL/$TESTFS1/c1" 80 log_mustnot eval "zfs send -i $snap $snap2 | zfs receive $TESTPOOL/$TESTFS1/c1" 83 log_must eval "zfs send -p $snap | zfs receive -u $TESTPOOL/$TESTFS1/c2" 87 log_must eval "zfs send -i $snap $snap2 | zfs receive $TESTPOOL/$TESTFS1/c2" 91 log_must eval "zfs send $snap | \ 96 log_must eval "zfs send -R $snap | zfs receive $TESTPOOL/$TESTFS1/c3" 101 log_mustnot eval "zfs send $snap | zfs receive $TESTPOOL/$TESTFS1/c4"
|
/freebsd/tests/sys/cddl/zfs/tests/snapshot/ |
H A D | snapshot_010_pos.ksh | 57 typeset snap 62 for snap in $ctrfs@$TESTSNAP1 \ 66 snapexists $snap && \ 67 log_must $ZFS destroy -rf $snap 98 for snap in $snapctr $snapctrvol $snapctrclone $snapctrfs; do 99 snapexists $snap && \ 100 log_fail "The snapshot $snap is not destroyed correctly." 103 for snap in $snappool $snapfs $snapvol $ctrfs@$TESTSNAP1;do 104 ! snapexists $snap && \ 105 log_fail "The snapshot $snap should be not destroyed."
|
H A D | snapshot_009_pos.ksh | 59 typeset snap 66 for snap in $ctr/$TESTFS1@$TESTSNAP1 \ 70 snapexists $snap && \ 71 log_must $ZFS destroy -rf $snap 103 for snap in $snappool $snapfs $snapvol $snapctr $snapctrvol \ 106 ! snapexists $snap && \ 107 log_fail "The snapshot $snap is not created via -r option." 113 for snap in $snappool $snapfs $snapvol $snapctr $snapctrvol \ 116 snapexists $snap && \ 117 log_fail "The snapshot $snap is not destroyed correctly."
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/ |
H A D | snapshot_010_pos.ksh | 50 typeset snap 54 for snap in $ctrfs@$TESTSNAP1 \ 58 snapexists $snap && destroy_dataset $snap "-rf" 90 for snap in $snapctr $snapctrvol $snapctrclone $snapctrfs; do 91 snapexists $snap && \ 92 log_fail "The snapshot $snap is not destroyed correctly." 95 for snap in $snappool $snapfs $snapvol $ctrfs@$TESTSNAP1; do 96 ! snapexists $snap && \ 97 log_fail "The snapshot $snap should be not destroyed."
|
/freebsd/tests/sys/cddl/zfs/tests/zvol/zvol_misc/ |
H A D | zvol_misc_008_pos.ksh | 113 log_must $ZFS snapshot -r $root@snap 114 log_must $ZFS clone $root/vol0@snap $root/vol1 116 test_notexists $root/vol1@snap 119 test_exists $root/vol0 $root/vol1 $root/vol1@snap 120 test_notexists $root/vol0@snap 124 test_exists $root/vol0 $root/vol1 $root/vol0@snap 125 test_notexists $root/vol1@snap 131 test_notexists $root/vol2@snap 135 test_exists $root/vol0 $root/vol0@snap \ 137 test_notexists $root/vol1@snap $root/vol1@newsnap [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/ |
H A D | tst.destroy_snap.ksh | 21 snap=$TESTPOOL/$TESTFS@$TESTSNAP 25 destroy_dataset $snap 32 log_must snapexists $snap 34 log_must_program_sync $TESTPOOL - $snap <<-EOF 36 snap = arg["argv"][1] 37 err = zfs.sync.destroy(snap) 38 msg = "destroying " .. snap .. " err=" .. err 42 log_mustnot snapexists $snap
|