Home
last modified time | relevance | path

Searched refs:TESTSNAP (Results 1 – 25 of 147) sorted by relevance

123456

/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_bookmark/
H A Dzfs_bookmark_cliargs.ksh58 snapexists "$DATASET@$TESTSNAP" && \
59 destroy_dataset "$DATASET@$TESTSNAP"
75 TESTSNAP='snapshot'
82 log_must zfs snapshot "$DATASET@$TESTSNAP"
89 log_must zfs bookmark "$DATASET@$TESTSNAP" "$DATASET#$TESTBM"
94 log_must zfs bookmark "@$TESTSNAP" "$DATASET#$TESTBM"
99 log_must zfs bookmark "$DATASET@$TESTSNAP" "#$TESTBM"
105 log_mustnot zfs bookmark "@$TESTSNAP" "#$TESTBM"
106 log_mustnot zfs bookmark "$TESTSNAP" "#$TESTBM"
107 log_mustnot zfs bookmark "@$TESTSNAP" "$TESTBM"
[all …]
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/
H A Dzfs_snapshot_002_neg.ksh54 for snap in $TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP \
55 $TESTPOOL/$TESTCTR/$TESTVOL@$TESTSNAP;
69 "$TESTPOOL/$TESTCTR@$TESTSNAP" "$TESTPOOL/$TESTCTR@blah?" \
70 "$TESTPOOL/$TESTCTR@blah*" "@$TESTSNAP" "$TESTPOOL/$TESTCTR@" \
71 "$TESTPOOL/$TESTFS/$TESTSNAP" "blah/blah@$TESTSNAP" \
72 "$TESTPOOL/$TESTCTR@$TESTSNAP@$TESTSNAP"
75 log_must zfs snapshot $TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP
88 log_must zfs destroy $TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP
94 log_must zfs snapshot $TESTPOOL/$TESTCTR/$TESTVOL@$TESTSNAP
96 log_mustnot zfs snapshot -r $TESTPOOL/$TESTCTR@$TESTSNAP
H A Dzfs_snapshot_001_neg.ksh63 "/$TESTPOOL/$TESTFS@$TESTSNAP" "/$TESTPOOL/$TESTVOL@$TESTSNAP" \
64 "@$TESTSNAP" "$TESTPOOL/$TESTFS@" "$TESTPOOL/$TESTVOL@" \
65 "$TESTPOOL//$TESTFS@$TESTSNAP" "$TESTPOOL//$TESTVOL@$TESTSNAP" \
66 "$TESTPOOL/$TESTFS/$TESTSNAP" "$TESTPOOL/$TESTVOL/$TESTSNAP" \
67 "$TESTPOOL/$TESTFS@$TESTSNAP@$TESTSNAP1" \
68 "$TESTPOOL/$TESTVOL@$TESTSNAP@$TESTSNAP1" \
70 "blah/blah@$TESTSNAP"
/src/tests/sys/cddl/zfs/tests/cli_root/zfs_snapshot/
H A Dzfs_snapshot_002_neg.ksh61 for snap in $TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP \
62 $TESTPOOL/$TESTCTR/$TESTVOL@$TESTSNAP;
77 "$TESTPOOL/$TESTCTR@$TESTSNAP" "$TESTPOOL/$TESTCTR@blah?" \
78 "$TESTPOOL/$TESTCTR@blah*" "@$TESTSNAP" "$TESTPOOL/$TESTCTR@" \
79 "$TESTPOOL/$TESTFS/$TESTSNAP" "blah/blah@$TESTSNAP" \
80 "$TESTPOOL/$TESTCTR@$TESTSNAP@$TESTSNAP"
83 log_must $ZFS snapshot $TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP
96 log_must $ZFS destroy $TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP
102 log_must $ZFS snapshot $TESTPOOL/$TESTCTR/$TESTVOL@$TESTSNAP
104 log_mustnot $ZFS snapshot -r $TESTPOOL/$TESTCTR@$TESTSNAP
H A Dzfs_snapshot_001_neg.ksh69 "/$TESTPOOL/$TESTFS@$TESTSNAP" "/$TESTPOOL/$TESTVOL@$TESTSNAP" \
70 "@$TESTSNAP" "$TESTPOOL/$TESTFS@" "$TESTPOOL/$TESTVOL@" \
71 "$TESTPOOL//$TESTFS@$TESTSNAP" "$TESTPOOL//$TESTVOL@$TESTSNAP" \
72 "$TESTPOOL/$TESTFS/$TESTSNAP" "$TESTPOOL/$TESTVOL/$TESTSNAP" \
73 "$TESTPOOL/$TESTFS@$TESTSNAP@$TESTSNAP1" \
74 "$TESTPOOL/$TESTVOL@$TESTSNAP@$TESTSNAP1" \
76 "blah/blah@$TESTSNAP"
/src/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dcanmount_001_pos.ksh63 "$TESTPOOL/$TESTVOL" "$TESTPOOL/$TESTFS@$TESTSNAP" \
64 "$TESTPOOL/$TESTVOL@$TESTSNAP" "$TESTPOOL/$TESTCLONE1"
67 "$TESTPOOL/$TESTFS@$TESTSNAP" "$TESTPOOL/$TESTVOL@$TESTSNAP"
75 if snapexists $TESTPOOL/$TESTFS@$TESTSNAP ; then
76 log_must $ZFS destroy -R $TESTPOOL/$TESTFS@$TESTSNAP
78 if snapexists $TESTPOOL/$TESTVOL@$TESTSNAP ; then
79 log_must $ZFS destroy -R $TESTPOOL/$TESTVOL@$TESTSNAP
103 log_must $ZFS snapshot $TESTPOOL/$TESTFS@$TESTSNAP
104 log_must $ZFS snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
105 log_must $ZFS clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE
[all …]
H A Dcanmount_002_pos.ksh70 "$TESTPOOL/$TESTVOL" "$TESTPOOL/$TESTFS@$TESTSNAP" \
71 "$TESTPOOL/$TESTVOL@$TESTSNAP" "$TESTPOOL/$TESTCLONE1"
74 "$TESTPOOL/$TESTFS@$TESTSNAP" "$TESTPOOL/$TESTVOL@$TESTSNAP"
98 if snapexists $TESTPOOL/$TESTFS@$TESTSNAP ; then
99 log_must $ZFS destroy -R $TESTPOOL/$TESTFS@$TESTSNAP
101 if snapexists $TESTPOOL/$TESTVOL@$TESTSNAP ; then
102 log_must $ZFS destroy -R $TESTPOOL/$TESTVOL@$TESTSNAP
121 log_must $ZFS snapshot $TESTPOOL/$TESTFS@$TESTSNAP
122 log_must $ZFS snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
123 log_must $ZFS clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE
[all …]
H A Dro_props_001_pos.ksh61 $TESTPOOL/$TESTCTR/$TESTFS1 $TESTPOOL/$TESTFS@$TESTSNAP \
62 $TESTPOOL/$TESTVOL@$TESTSNAP
102 datasetexists $TESTPOOL/$TESTVOL@$TESTSNAP && \
103 destroy_snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
104 datasetexists $TESTPOOL/$TESTFS@$TESTSNAP && \
105 destroy_snapshot $TESTPOOL/$TESTFS@$TESTSNAP
112 create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
113 create_snapshot $TESTPOOL/$TESTVOL $TESTSNAP
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dcanmount_001_pos.ksh55 "$TESTPOOL/$TESTVOL" "$TESTPOOL/$TESTFS@$TESTSNAP" \
56 "$TESTPOOL/$TESTVOL@$TESTSNAP" "$TESTPOOL/$TESTCLONE1"
59 "$TESTPOOL/$TESTFS@$TESTSNAP" "$TESTPOOL/$TESTVOL@$TESTSNAP"
67 snapexists $TESTPOOL/$TESTFS@$TESTSNAP && \
68 destroy_dataset $TESTPOOL/$TESTFS@$TESTSNAP -R
70 snapexists $TESTPOOL/$TESTVOL@$TESTSNAP && \
71 destroy_dataset $TESTPOOL/$TESTVOL@$TESTSNAP -R
88 log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP
89 log_must zfs snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
90 log_must zfs clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE
[all …]
H A Dcanmount_002_pos.ksh58 "$TESTPOOL/$TESTVOL" "$TESTPOOL/$TESTFS@$TESTSNAP" \
59 "$TESTPOOL/$TESTVOL@$TESTSNAP" "$TESTPOOL/$TESTCLONE1"
62 "$TESTPOOL/$TESTFS@$TESTSNAP" "$TESTPOOL/$TESTVOL@$TESTSNAP"
84 snapexists $TESTPOOL/$TESTFS@$TESTSNAP && \
85 destroy_dataset $TESTPOOL/$TESTFS@$TESTSNAP -R
87 snapexists $TESTPOOL/$TESTVOL@$TESTSNAP && \
88 destroy_dataset $TESTPOOL/$TESTVOL@$TESTSNAP -R
105 log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP
106 log_must zfs snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
107 log_must zfs clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE
[all …]
H A Dro_props_001_pos.ksh53 $TESTPOOL/$TESTCTR/$TESTFS1 $TESTPOOL/$TESTFS@$TESTSNAP \
54 $TESTPOOL/$TESTVOL@$TESTSNAP
68 datasetexists $TESTPOOL/$TESTVOL@$TESTSNAP && \
69 destroy_snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
70 datasetexists $TESTPOOL/$TESTFS@$TESTSNAP && \
71 destroy_snapshot $TESTPOOL/$TESTFS@$TESTSNAP
78 create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
79 create_snapshot $TESTPOOL/$TESTVOL $TESTSNAP
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_remount.ksh52 snapexists $TESTSNAP && destroy_dataset $TESTSNAP
111 TESTSNAP="$TESTFS@snap"
113 snapexists $TESTSNAP || log_must zfs snapshot $TESTSNAP
131 log_must mount -t zfs $TESTSNAP $MNTPSNAP
133 checkmount $TESTSNAP 'ro'
134 log_must mount $RO $TESTSNAP $MNTPSNAP
136 checkmount $TESTSNAP 'ro'
143 log_must mount -t zfs -o rw $TESTSNAP $MNTPSNAP
145 checkmount $TESTSNAP 'ro'
146 log_mustnot mount $RW $TESTSNAP $MNTPSNAP
[all …]
/src/tests/sys/cddl/zfs/tests/cli_root/zfs_inherit/
H A Dzfs_inherit_003_pos.ksh59 if snapexists $ds@$TESTSNAP; then
60 log_must $ZFS destroy $ds@$TESTSNAP
75 log_must $ZFS snapshot $ds@$TESTSNAP
77 typeset snapvalue=$(get_prop $prop_name $ds@$TESTSNAP)
80 log_fail "The '$ds@$TESTSNAP '$prop_name' value '$snapvalue' " \
85 log_must eval "$ZFS set $prop_name='$snapvalue' $ds@$TESTSNAP"
87 log_must $ZFS inherit $prop_name $ds@$TESTSNAP
89 snapvalue=$(get_prop $prop_name $ds@$TESTSNAP)
92 log_fail "The '$ds@$TESTSNAP '$prop_name' value '$snapvalue' " \
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_inherit/
H A Dzfs_inherit_003_pos.ksh51 snapexists $ds@$TESTSNAP && destroy_dataset $ds@$TESTSNAP
65 log_must zfs snapshot $ds@$TESTSNAP
67 typeset snapvalue=$(get_prop $prop_name $ds@$TESTSNAP)
70 log_fail "The '$ds@$TESTSNAP '$prop_name' value '$snapvalue' " \
75 log_must eval "zfs set $prop_name='$snapvalue' $ds@$TESTSNAP"
77 log_must zfs inherit $prop_name $ds@$TESTSNAP
79 snapvalue=$(get_prop $prop_name $ds@$TESTSNAP)
82 log_fail "The '$ds@$TESTSNAP '$prop_name' value '$snapvalue' " \
/src/tests/sys/cddl/zfs/tests/cli_root/zfs_promote/
H A Dzfs_promote_001_pos.ksh80 snapexists $ds@$TESTSNAP && \
81 log_fail "zfs promote cannot promote $ds@$TESTSNAP."
82 ! snapexists $c_ds@$TESTSNAP && \
83 log_fail "The $c_ds@$TESTSNAP after zfs promote doesn't exist."
86 [[ "$origin_prop" != "$c_ds@$TESTSNAP" ]] && \
108 snap=$fs@$TESTSNAP
109 snapfile=$TESTDIR/$(get_snapdir_name)/$TESTSNAP/$TESTFILE0
112 csnap=$clone@$TESTSNAP
113 csnapfile=/$clone/$(get_snapdir_name)/$TESTSNAP/$TESTFILE0
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_promote/
H A Dzfs_promote_001_pos.ksh73 snapexists $ds@$TESTSNAP && \
74 log_fail "zfs promote cannot promote $ds@$TESTSNAP."
75 ! snapexists $c_ds@$TESTSNAP && \
76 log_fail "The $c_ds@$TESTSNAP after zfs promote doesn't exist."
79 [[ "$origin_prop" != "$c_ds@$TESTSNAP" ]] && \
101 snap=$fs@$TESTSNAP
102 snapfile=$TESTDIR/.zfs/snapshot/$TESTSNAP/$TESTFILE0
105 csnap=$clone@$TESTSNAP
106 csnapfile=/$clone/.zfs/snapshot/$TESTSNAP/$TESTFILE0
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/
H A Dtst.list_clones.ksh31 destroy_dataset $TESTPOOL/$TESTFS@$TESTSNAP "-R"
42 for s in zfs.list.clones("$TESTPOOL/$TESTFS@$TESTSNAP") do
54 for s in zfs.list.clones("$TESTPOOL/$TESTFS@$TESTSNAP") do
65 create_clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE1
66 create_clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE2
67 create_clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE3
77 for s in zfs.list.clones("$TESTPOOL/$TESTFS@$TESTSNAP") do
92 zfs.list.clones("$TESTPOOL/not-a-fs@$TESTSNAP")
108 zfs.list.clones("not-a-pool/$TESTFS@$TESTSNAP")
H A Dtst.list_snapshots.ksh31 destroy_dataset $TESTPOOL/$TESTFS@$TESTSNAP
51 create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
56 assert(s == "$TESTPOOL/$TESTFS@$TESTSNAP")
63 TESTSNAP1=${TESTSNAP}-1
64 TESTSNAP2=${TESTSNAP}-2
65 TESTSNAP3=${TESTSNAP}-3
73 a["$TESTPOOL/$TESTFS@$TESTSNAP"] = false
84 assert(a["$TESTPOOL/$TESTFS@$TESTSNAP"] and
109 zfs.list.snapshots("$TESTPOOL/${TESTFS}@$TESTSNAP")
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rollback/
H A Dzfs_rollback_004_neg.ksh55 snapexists ${ds}@$TESTSNAP && \
56 destroy_dataset ${ds}@$TESTSNAP
67 log_must zfs snapshot ${ds}@$TESTSNAP
73 log_mustnot eval "zfs rollback $opt ${ds}@$TESTSNAP \
74 ${ds}@$TESTSNAP >/dev/null 2>&1"
81 log_mustnot eval "zfs rollback $badopt ${ds}@$TESTSNAP \
H A Dzfs_rollback_003_neg.ksh65 create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
70 log_mustnot zfs rollback $TESTPOOL/$TESTFS@$TESTSNAP
71 log_mustnot zfs rollback -f $TESTPOOL/$TESTFS@$TESTSNAP
79 log_mustnot zfs rollback -r $TESTPOOL/$TESTFS@$TESTSNAP
80 log_mustnot zfs rollback -rf $TESTPOOL/$TESTFS@$TESTSNAP
/src/tests/sys/cddl/zfs/tests/cli_root/zfs_rollback/
H A Dzfs_rollback_004_neg.ksh63 if snapexists ${ds}@$TESTSNAP; then
64 log_must $ZFS destroy ${ds}@$TESTSNAP
76 log_must $ZFS snapshot ${ds}@$TESTSNAP
82 log_mustnot eval "$ZFS rollback $opt ${ds}@$TESTSNAP \
83 ${ds}@$TESTSNAP >/dev/null 2>&1"
90 log_mustnot eval "$ZFS rollback $badopt ${ds}@$TESTSNAP \
/src/tests/sys/cddl/zfs/tests/snapshot/
H A Dsnapshot.cfg31 export TESTSNAP=testsnap${TESTCASE_ID}
40 export SNAPPOOL="$TESTPOOL@$TESTSNAP"
41 export SNAPFS="$TESTPOOL/$TESTFS@$TESTSNAP"
42 export SNAPFS1="$TESTPOOL/$TESTVOL@$TESTSNAP"
43 export SNAPFS2="$TESTPOOL1/$TESTFS@$TESTSNAP"
44 export SNAPCTR="$TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP"
45 export SNAPDIR="$TESTDIR/$SNAPROOT/$TESTSNAP"
46 export SNAPDIR1="$TESTDIR1/$SNAPROOT/$TESTSNAP"
47 export SNAPDIR2="$TESTDIR2/$SNAPROOT/$TESTSNAP"
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/
H A Dsnapshot.cfg37 export SNAPPOOL="$TESTPOOL@$TESTSNAP"
38 export SNAPFS="$TESTPOOL/$TESTFS@$TESTSNAP"
39 export SNAPFS1="$TESTPOOL/$TESTVOL@$TESTSNAP"
40 export SNAPFS2="$TESTPOOL1/$TESTFS@$TESTSNAP"
41 export SNAPCTR="$TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP"
42 export SNAPDIR="$TESTDIR/$SNAPROOT/$TESTSNAP"
43 export SNAPDIR1="$TESTDIR1/$SNAPROOT/$TESTSNAP"
44 export SNAPDIR2="$TESTDIR2/$SNAPROOT/$TESTSNAP"
/src/tests/sys/cddl/zfs/tests/cli_user/misc/
H A Dzfs_destroy_001_neg.ksh61 "destroy $TESTPOOL/$TESTFS@$TESTSNAP" \
62 "destroy -f $TESTPOOL/$TESTFS@$TESTSNAP" \
63 "destroy -r $TESTPOOL/$TESTFS@$TESTSNAP" \
64 "destroy -rf $TESTPOOL/$TESTFS@$TESTSNAP" \
65 "destroy -fr $TESTPOOL/$TESTFS@$TESTSNAP"
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/
H A Dzfs_destroy_001_neg.ksh54 "destroy $TESTPOOL/$TESTFS@$TESTSNAP" \
55 "destroy -f $TESTPOOL/$TESTFS@$TESTSNAP" \
56 "destroy -r $TESTPOOL/$TESTFS@$TESTSNAP" \
57 "destroy -rf $TESTPOOL/$TESTFS@$TESTSNAP" \
58 "destroy -fr $TESTPOOL/$TESTFS@$TESTSNAP"

123456