Home
last modified time | relevance | path

Searched refs:snapshot (Results 1 – 25 of 609) sorted by relevance

12345678910>>...25

/freebsd/tests/sys/cddl/zfs/tests/snapshot/
H A Dsnapshot_test.sh36 . $(atf_get_srcdir)/snapshot.cfg
46 . $(atf_get_srcdir)/snapshot.cfg
61 . $(atf_get_srcdir)/snapshot.cfg
70 . $(atf_get_srcdir)/snapshot.cfg
85 . $(atf_get_srcdir)/snapshot.cfg
94 . $(atf_get_srcdir)/snapshot.cfg
109 . $(atf_get_srcdir)/snapshot.cfg
118 . $(atf_get_srcdir)/snapshot.cfg
133 . $(atf_get_srcdir)/snapshot.cfg
142 . $(atf_get_srcdir)/snapshot.cfg
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_diff/
H A Dzfs_diff_types.ksh89 log_must zfs snapshot "$TESTSNAP1"
91 log_must zfs snapshot "$TESTSNAP2"
95 log_must zfs snapshot "$TESTSNAP1"
97 log_must zfs snapshot "$TESTSNAP2"
101 log_must zfs snapshot "$TESTSNAP1"
103 log_must zfs snapshot "$TESTSNAP2"
107 log_must zfs snapshot "$TESTSNAP1"
109 log_must zfs snapshot "$TESTSNAP2"
113 log_must zfs snapshot "$TESTSNAP1"
115 log_must zfs snapshot "$TESTSNAP2"
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/
H A Dzfs_rename_004_neg.ksh66 $TESTPOOL/$TESTFS1 $TESTPOOL/$TESTFS@snapshot \
68 $TESTPOOL/$TESTCTR1 $TESTPOOL/$TESTFS@snapshot \
72 $TESTPOOL/$TESTCTR/$TESTFS1 $TESTPOOL/$TESTFS@snapshot \
76 $TESTPOOL/$TESTVOL $TESTPOOL/$TESTFS@snapshot \
79 $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTCTR1 \
80 $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTVOL \
81 $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTFS1 \
82 $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTCTR/$TESTFS1 \
88 $TESTPOOL/$TESTFS@snapshot \
89 $TESTPOOL/$TESTFS@snapshot/fs
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_004_neg.ksh58 $TESTPOOL/$TESTFS1 $TESTPOOL/$TESTFS@snapshot \
60 $TESTPOOL/$TESTCTR1 $TESTPOOL/$TESTFS@snapshot \
64 $TESTPOOL/$TESTCTR/$TESTFS1 $TESTPOOL/$TESTFS@snapshot \
68 $TESTPOOL/$TESTVOL $TESTPOOL/$TESTFS@snapshot \
71 $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTCTR1 \
72 $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTVOL \
73 $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTFS1 \
74 $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTCTR/$TESTFS1 \
80 $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTFS@snapshot/fs \
105 log_mustnot zfs rename -p $TESTPOOL/$TESTFS@snapshot \
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_017_pos.ksh34 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg
163 log_must zfs snapshot $TESTPOOL/$TESTFS@snap_a
164 log_must zfs snapshot $TESTPOOL/$TESTFS@snap_b
177 verify_dir $TESTDIR/.zfs/snapshot
178 verify_dir $TESTDIR/.zfs/snapshot/snap_a
179 verify_dir $TESTDIR/.zfs/snapshot/snap_b
181 cd $TESTDIR/.zfs/snapshot/snap_a
184 cd $TESTDIR/.zfs/snapshot/snap_b
188 verify_dir snapshot
189 cd $TESTDIR/.zfs/snapshot
H A Dsnapshot_002_pos.ksh33 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg
90 log_must zfs snapshot $SNAPFS
98 log_must tar cf $SNAPSHOT_TARDIR/snapshot.tar .
101 log_must mkdir $TESTDIR/original $TESTDIR/snapshot
107 log_must cd $TESTDIR/snapshot
108 log_must tar xf $SNAPSHOT_TARDIR/snapshot.tar
112 log_must directory_diff $TESTDIR/original $TESTDIR/snapshot
H A Dsnapshot_006_pos.ksh33 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg
99 log_must zfs snapshot $SNAPCTR
107 log_must tar cf $SNAPSHOT_TARDIR/snapshot.tar .
110 log_must mkdir $TESTDIR1/original mkdir $TESTDIR1/snapshot
116 log_must cd $TESTDIR1/snapshot
117 log_must tar xf $SNAPSHOT_TARDIR/snapshot.tar
121 log_must directory_diff $TESTDIR1/original $TESTDIR1/snapshot
H A Drollback_003_pos.ksh34 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg
80 log_must zfs snapshot $SNAPPOOL
82 log_mustnot zfs snapshot $SNAPPOOL
93 log_must zfs snapshot $TESTPOOL/$TESTFILE@$TESTSNAP
94 log_must zfs snapshot $SNAPPOOL.1
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/
H A Dtst.snapshot_neg.zcp26 -- invalid snapshot names
27 assert(zfs.sync.snapshot("ceci_nest_pas_une_dataset") == EINVAL);
28 assert(zfs.sync.snapshot(fs1) == EINVAL)
29 assert(zfs.sync.snapshot(fs1 .. "@" .. longstring) == ENAMETOOLONG)
31 assert(zfs.sync.snapshot(fs2 .. "@snap1") == 0)
32 -- only one snapshot of a filesystem is allowed per TXG.
33 assert(zfs.sync.snapshot(fs2 .. "@snap2") == EAGAIN)
34 -- snapshot already exists
35 assert(zfs.sync.snapshot(fs1 .. "@snap1") == EEXIST)
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dlibzfs_input_check.c338 test_snapshot(const char *pool, const char *snapshot) in test_snapshot() argument
345 fnvlist_add_boolean(snaps, snapshot); in test_snapshot()
360 test_space_snaps(const char *snapshot) in test_space_snaps() argument
363 fnvlist_add_string(required, "firstsnap", snapshot); in test_space_snaps()
365 IOC_INPUT_TEST(ZFS_IOC_SPACE_SNAPS, snapshot, required, NULL, 0); in test_space_snaps()
371 test_destroy_snaps(const char *pool, const char *snapshot) in test_destroy_snaps() argument
376 fnvlist_add_boolean(snaps, snapshot); in test_destroy_snaps()
387 test_bookmark(const char *pool, const char *snapshot, const char *bookmark) in test_bookmark() argument
391 fnvlist_add_string(required, bookmark, snapshot); in test_bookmark()
425 test_clone(const char *snapshot, const char *clone) in test_clone() argument
[all …]
/freebsd/sys/contrib/ck/src/
H A Dck_ht.c279 ck_ht_entry_t *snapshot, in ck_ht_map_probe_wr() argument
376 *snapshot = *cursor; in ck_ht_map_probe_wr()
414 struct ck_ht_entry *entry, *priority, snapshot; in ck_ht_gc() local
432 entry = ck_ht_map_probe_wr(map, h, &snapshot, &priority, in ck_ht_gc()
442 entry = ck_ht_map_probe_wr(map, h, &snapshot, &priority, in ck_ht_gc()
496 ck_ht_entry_t *snapshot, in ck_ht_map_probe_rd() argument
532 snapshot->key = (uintptr_t)ck_pr_load_ptr(&cursor->key); in ck_ht_map_probe_rd()
534 snapshot->value = (uintptr_t)ck_pr_load_ptr(&cursor->value); in ck_ht_map_probe_rd()
537 snapshot->key = (uintptr_t)ck_pr_load_ptr(&cursor->key); in ck_ht_map_probe_rd()
539 snapshot->key_length = CK_HT_TYPE_LOAD(&cursor->key_length); in ck_ht_map_probe_rd()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/rsend/
H A Drsend.kshlib66 log_must $ZFS snapshot $pool@psnap
73 log_must $ZFS snapshot $pool/$FS/vol@vsnap
79 log_must $ZFS snapshot -r $pool@init
92 log_must $ZFS snapshot $pool/vol@snapA
93 log_must $ZFS snapshot $pool/$FS/vol@snapB
94 log_must $ZFS snapshot $pool/$FS/vol@snapC
95 log_must $ZFS snapshot $pool/$FS/vclone@snapC
98 log_must $ZFS snapshot -r $pool@final
116 typeset list=$($ZFS list -H -r -t filesystem,snapshot,volume -o name $pool)
153 $ZFS list -r -H -t filesystem,snapshot,volume -o name $src_fs > $BACKDIR/src1
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/
H A Dreceive-o-x_props_aliases.ksh66 log_must zfs snapshot $orig@snap1
91 log_must zfs snapshot $orig@snap1
109 log_must zfs snapshot -r $orig@snap1
113 log_must zfs snapshot -r $orig@snap2
114 log_must zfs snapshot -r $orig@snap3
145 log_must zfs snapshot -r $orig@snap1
157 log_must zfs snapshot -r $orig@snap2
158 log_must zfs snapshot -r $orig@snap3
177 log_must zfs snapshot -r $orig@snap1
186 log_must zfs snapshot -r $orig@snap2
[all …]
H A Dreceive-o-x_props_override.ksh68 log_must zfs snapshot $orig@snap1
93 log_must zfs snapshot $orig@snap1
111 log_must zfs snapshot -r $orig@snap1
115 log_must zfs snapshot -r $orig@snap2
116 log_must zfs snapshot -r $orig@snap3
159 log_must zfs snapshot -r $orig@snap1
176 log_must zfs snapshot -r $orig@snap2
177 log_must zfs snapshot -r $orig@snap3
202 log_must zfs snapshot -r $orig@snap1
212 log_must zfs snapshot -r $orig@snap2
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/limits/
H A Dsnapshot_limit.ksh90 log_must user_run $STAFF1 zfs snapshot "$DATASET_TEST@snap"
91 log_mustnot user_run $STAFF1 zfs snapshot "$DATASET_TEST@snap_exceed"
95 log_must zfs snapshot "$DATASET_TEST@snap_notenforced_root"
97 log_must user_run $STAFF1 zfs snapshot "$DATASET_TEST@snap_notenforced_user"
105 log_must zfs snapshot "$DATASET_TEST/rename@snap"
114 log_must zfs snapshot "$DATASET_TEST/rename@snap"
125 log_must zfs snapshot "$DATASET_TEST/promote@snap"
142 log_must zfs snapshot "$DATASET_UTIL/send@snap1"
151 log_must zfs snapshot "$DATASET_UTIL/send@snap2"
159 log_must zfs snapshot "$DATASET_UTIL/send@snap3"
H A Dfilesystem_count.ksh62 log_must zfs snapshot "$DATASET_TEST/create_clone@snap"
85 log_must zfs snapshot "$DATASET_UTIL/promote@snap"
95 log_must zfs snapshot "$DATASET_UTIL/send@snap1"
96 log_must zfs snapshot "$DATASET_UTIL/send@snap2"
108 log_must zfs snapshot "$DATASET_TEST/rollback@snap"
116 log_must zfs snapshot "$DATASET_TEST/diff@snap1"
117 log_must zfs snapshot "$DATASET_TEST/diff@snap2"
H A Dsnapshot_count.ksh58 log_must zfs snapshot "$DATASET_TEST@snap"
64 log_must zfs snapshot "$DATASET_TEST@snap"
72 log_must zfs snapshot "$DATASET_TEST/renamed@snap"
81 log_must zfs snapshot "$DATASET_UTIL/promote@snap"
91 log_must zfs snapshot "$DATASET_UTIL/send@snap1"
92 log_must zfs snapshot "$DATASET_UTIL/send@snap2"
/freebsd/sys/contrib/openzfs/contrib/dracut/
H A DREADME.md36 3. `bootfs.snapshot`, `bootfs.snapshot=snapshot-name`: enables `zfs-snapshot-bootfs.service`,
37 …which creates a snapshot `$root_dataset@$(uname -r)` (or, in the second form, `$root_dataset@snaps…
39 Failure to create the snapshot is noted, but booting continues.
41 4. `bootfs.rollback`, `bootfs.rollback=snapshot-name`: enables `zfs-rollback-bootfs.service`,
42 …` rolls back to `$root_dataset@$(uname -r)` (or, in the second form, `$root_dataset@snapshot-name`)
47 5. If both `bootfs.snapshot` and `bootfs.rollback` are set, `bootfs.rollback` is ordered *after* `b…
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_share/
H A Dzfs_share_004_pos.ksh58 if snapexists $TESTPOOL/$TESTFS@snapshot; then
59 log_must $ZFS destroy $TESTPOOL/$TESTFS@snapshot
85 log_must $LS -l $mntp/$SNAPROOT/snapshot
95 log_must $LS -l $mntp/$SNAPROOT/snapshot
101 log_must $ZFS snapshot $TESTPOOL/$TESTFS@snapshot
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_share/
H A Dzfs_share_004_pos.ksh50 snapexists $TESTPOOL/$TESTFS@snapshot && \
51 destroy_dataset $TESTPOOL/$TESTFS@snapshot
76 log_must ls -l $mntp/$SNAPROOT/snapshot
86 log_must ls -l $mntp/$SNAPROOT/snapshot
92 log_must zfs snapshot $TESTPOOL/$TESTFS@snapshot
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_snapshot/
H A Dzfs_snapshot_003_neg.ksh64 log_mustnot $ZFS snapshot $opt $ds@$TESTSNAP
67 log_mustnot $ZFS snapshot $ds@snap $ds@snap1
68 log_mustnot $ZFS snapshot -r $ds@snap $ds@snap1
70 log_mustnot $ZFS snapshot $ds@$l_name
71 log_mustnot $ZFS snapshot -r $ds@$l_name
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/
H A Dzfs_snapshot_003_neg.ksh56 log_mustnot zfs snapshot $opt $ds@$TESTSNAP
59 log_mustnot zfs snapshot $ds@snap $ds@snap1
60 log_mustnot zfs snapshot -r $ds@snap $ds@snap1
62 log_mustnot zfs snapshot $ds@$l_name
63 log_mustnot zfs snapshot -r $ds@$l_name
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/
H A Dredacted_contents.ksh50 log_must zfs snapshot $clone@snap1
62 log_must zfs snapshot $clone@snap1
72 log_must zfs snapshot $clone@snap1
85 log_must zfs snapshot $clone@snap1
98 log_must zfs snapshot $clone@snap1
110 log_must zfs snapshot $clone@snap1
120 log_must zfs snapshot $clone@snap1
125 log_must zfs snapshot $clone/new@snap
138 log_must zfs snapshot $POOL/stride3@snap
142 log_must zfs snapshot $POOL/stride5@snap
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unshare/
H A Dzfs_unshare_003_pos.ksh52 snapexists $TESTPOOL/$TESTFS@snapshot && \
53 destroy_dataset $TESTPOOL/$TESTFS@snapshot
83 not_shared $mntp@snapshot || \
90 log_must zfs snapshot $TESTPOOL/$TESTFS@snapshot
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_unshare/
H A Dzfs_unshare_003_pos.ksh61 if snapexists $TESTPOOL/$TESTFS@snapshot; then
62 log_must $ZFS destroy $TESTPOOL/$TESTFS@snapshot
94 not_shared $mntp@snapshot || \
101 log_must $ZFS snapshot $TESTPOOL/$TESTFS@snapshot

12345678910>>...25