/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_snapshot/ |
H A D | zfs_snapshot_003_neg.ksh | 36 # "zfs snapshot" fails with bad options,too many arguments or too long 37 # snapshot name 41 # 2. Execute 'zfs snapshot' with each argument in the array, 47 log_assert "'zfs snapshot' fails with bad options, or too many arguments. " 51 # set too long snapshot name (>256) 56 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 [all...] |
H A D | zfs_snapshot_002_neg.ksh | 36 # "zfs snapshot -r" fails with invalid arguments or scenarios. 38 # (1) The child filesystem already has snapshot with the same name 39 # (2) The child volume already has snapshot with the same name 43 # 2. Execute 'zfs snapshot -r' with each argument in the array, 65 log_assert "'zfs snapshot -r' fails with invalid arguments or scenarios. " 75 log_must zfs snapshot $TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP 80 log_mustnot zfs snapshot -r ${args[i]} 86 # identical name snapshot, zfs snapshot -r should fail when 87 # creating snapshot wit [all...] |
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unshare/ |
H A D | zfs_unshare_003_pos.ksh | 42 # 3. Create a snapshot 52 if snapexists $TESTPOOL/$TESTFS@snapshot; then 53 log_must zfs destroy $TESTPOOL/$TESTFS@snapshot 63 # unshare the mountpoint and then verify a snapshot of the mounpoint 84 not_shared $mntp@snapshot || \ 85 log_fail "Snapshot $mntpt@snapshot is shared (set sharenfs)." 91 log_must zfs snapshot $TESTPOOL/$TESTFS@snapshot
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/ |
H A D | zfs_rename_004_neg.ksh | 42 # 1. Given a file system, snapshot and volume. 58 $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 \ [all...] |
H A D | zfs_rename_009_neg.ksh | 36 # A snapshot already exists with the new name, then none of the 40 # 1. Create snapshot for a set of datasets. 41 # 2. Create a new snapshot for one of datasets. 42 # 3. Using rename -r command with exists snapshot name. 50 typeset snaps=$(zfs list -H -t snapshot -o name) 72 log_assert "zfs rename -r failed, when snapshot name is already existing." 81 log_must zfs snapshot -r ${TESTPOOL}@snap 84 # Create one more snapshot 85 log_must zfs snapshot ${datasets[$i]}@snap2 101 log_pass "zfs rename -r failed, when snapshot nam [all...] |
H A D | zfs_rename.kshlib | 39 # Create snapshot 40 if ! snapexists $TESTPOOL/$TESTFS@snapshot; then 41 log_must zfs snapshot $TESTPOOL/$TESTFS@snapshot 42 log_must zfs clone $TESTPOOL/$TESTFS@snapshot \ 108 if snapexists $TESTPOOL/$TESTFS@snapshot; then 109 log_must zfs destroy -fR $TESTPOOL/$TESTFS@snapshot
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_share/ |
H A D | zfs_share_004_pos.ksh | 37 # Verify that a file system and its snapshot are shared. 42 # 3. Create a snapshot 50 if snapexists $TESTPOOL/$TESTFS@snapshot; then 51 log_must zfs destroy $TESTPOOL/$TESTFS@snapshot 62 # share the mountpoint and then verify a snapshot of the mounpoint 77 log_must ls -l $mntp/$SNAPROOT/snapshot 87 log_must ls -l $mntp/$SNAPROOT/snapshot 90 log_assert "Verify that a file system and its snapshot are shared." 93 log_must zfs snapshot $TESTPOOL/$TESTFS@snapshot [all...] |
/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapshot/ |
H A D | rollback_003_pos.ksh | 34 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg 82 log_must zfs snapshot $SNAPPOOL 84 log_mustnot zfs snapshot $SNAPPOOL 94 log_must zfs snapshot $TESTPOOL/$TESTFILE@$TESTSNAP 95 log_must zfs snapshot $SNAPPOOL.1
|
H A D | snapshot_014_pos.ksh | 33 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg 42 # 3. take a snapshot and destroy it 68 log_must zfs snapshot $SNAPCTR 74 log_note "Verify removing the first file should succeed after the snapshot is \
|
H A D | snapshot_002_pos.ksh | 33 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg 37 # An archive of a zfs file system and an archive of its snapshot 39 # changed sinced the snapshot was taken. 44 # 3) Create a snapshot of the dataset 46 # 5) Create a tarball of the snapshot 78 "an archive of its snapshot." 104 log_note "Create a snapshot and mount it..." 105 log_must zfs snapshot $SNAPFS 110 log_note "Create tarball of snapshot [all...] |
H A D | snapshot_006_pos.ksh | 33 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg 37 # An archive of a zfs dataset and an archive of its snapshot 38 # changed sinced the snapshot was taken. 43 # 3) Create a snapshot of the dataset 45 # 5) Create a tarball of the snapshot 77 "an archive of the dataset's snapshot." 102 log_note "Create a snapshot and mount it..." 103 log_must zfs snapshot $SNAPCTR 108 log_note "Create tarball of snapshot [all...] |
H A D | snapshot_017_pos.ksh | 34 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg 44 # a proper reflection of the filesystem the snapshot was taken of. 47 # 2. Take a snapshot of the filesystem 49 # 4. Walk down the snapshot directory structure verifying it 164 log_must zfs snapshot $TESTPOOL/$TESTFS@snap_a 165 log_must zfs snapshot $TESTPOOL/$TESTFS@snap_b 168 # The snapshot file structure should not change 176 # verify the top level snapshot directories 178 verify_dir $TESTDIR/.zfs/snapshot [all...] |
H A D | snapshot_010_pos.ksh | 33 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg 37 # Verify 'destroy -r' can correctly destroy a snapshot tree at any point. 40 # 1. Use the snapshot -r to create snapshot for top level pool 41 # 2. Select a middle point of the snapshot tree, use destroy -r to destroy all 65 log_assert "Verify 'destroy -r' can correctly destroy a snapshot subtree at any point." 80 log_must zfs snapshot $ctrfs@$TESTSNAP1 87 log_must zfs snapshot -r $snappool 93 log_fail "The snapshot [all...] |
H A D | snapshot_012_pos.ksh | 33 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg 37 # Verify 'snapshot -r' can create snapshot for promoted clone, and vice 38 # versa, a clone filesystem from the snapshot created by 'snapshot -r' 43 # 2. snapshot a filesystem and clone the snapshot 45 # 4. snapshot -r the dataset tree 46 # 5. verify that the snapshot o [all...] |
H A D | snapshot_013_pos.ksh | 33 . $STF_SUITE/tests/functional/snapshot/snapshot.cfg 37 # verify that the snapshots created by 'snapshot -r' can be used for 42 # 2. snapshot -r the dataset tree 43 # 3. select one snapshot used for zfs send/recv 61 log_assert "Verify snapshots from 'snapshot -r' can be used for zfs send/recv" 71 snapdir=$fsdir/.zfs/snapshot/$TESTSNAP 78 log_note "Populate the $TESTDIR directory (prior to snapshot)" 87 log_must zfs snapshot -r $snappool 91 log_fail "zfs send/receive fails with snapshot [all...] |
H A D | Makefile | 19 TESTDIR = $(ROOTOPTPKG)/tests/functional/snapshot 45 FILES = snapshot.cfg
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/ |
H A D | zfs_send_003_pos.ksh | 36 # 'zfs send -i' can deal with abbreviated snapshot name. 40 # 2. Make sure 'zfs send -i' support abbreviated snapshot name. 51 log_assert "'zfs send -i' can deal with abbreviated snapshot name." 59 log_must zfs snapshot $snap1 60 log_must zfs snapshot $snap2 69 log_pass "'zfs send -i' deal with abbreviated snapshot name passed."
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/ |
H A D | zfs_snapshot_001_neg.ksh | 38 # zfs snapshot returns an error when run as a user 41 # 1. Attempt to snapshot a dataset 42 # 2. Verify the snapshot wasn't taken 46 log_assert "zfs snapshot returns an error when run as a user" 48 log_mustnot zfs snapshot $TESTPOOL/$TESTFS@usersnap1 56 log_pass "zfs snapshot returns an error when run as a user"
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/xattr/ |
H A D | xattr_006_pos.ksh | 35 # Xattrs present on a file in a snapshot should be visible. 39 # 2. Take a snapshot of the filesystem 40 # 3. Verify that we can take a snapshot of it. 50 log_assert "read xattr on a snapshot" 57 # snapshot the filesystem 58 log_must zfs snapshot $TESTPOOL/$TESTFS@snap 60 # check for the xattr on the snapshot 61 verify_xattr $TESTDIR/.zfs/snapshot/snap/myfile.$$ passwd /etc/passwd 63 log_pass "read xattr on a snapshot"
|
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | statcommon.h | 184 /* time at which iodev snapshot was taken */ 212 /* The primary structure of a system snapshot. */ 213 struct snapshot { struct 263 int nr_active_cpus(struct snapshot *ss); 277 * Return a struct snapshot based on the snapshot_types parameter 281 struct snapshot *acquire_snapshot(kstat_ctl_t *, int, struct iodev_filter *); 283 /* free a snapshot */ 284 void free_snapshot(struct snapshot *ss); 296 int snapshot_walk(enum snapshot_types type, struct snapshot *old, 297 struct snapshot *ne [all...] |
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
H A D | zfs_unmount_009_pos.ksh | 36 # Verify that zfs unmount and destroy in a snapshot directory will not cause error. 39 # 1. Create a file in a zfs filesystem, snapshot it and change directory to snapshot directory 42 # 4. 'zfs mount -a' and change directory to snapshot directory again 43 # 5. Verify that zfs destroy snapshot will succeed 45 # 7. Create zfs filesystem, create a file, snapshot it and change to snapshot directory 80 log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP 81 log_must cd .zfs/snapshot/$TESTSNAP 86 log_assert "zfs fource unmount and destroy in snapshot director [all...] |
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_receive/ |
H A D | zfs_receive_011_pos.ksh | 31 # final snapshot, where the refquota should hold. 40 # 7. Send a replication stream of the second snapshot to a new filesystem. 71 log_must zfs snapshot $orig@1 81 log_must zfs snapshot $orig@2 83 # 7. Send a replication stream of the second snapshot to a new filesystem.
|
H A D | zfs_receive_012_pos.ksh | 67 log_must zfs snapshot $orig@1 77 log_must zfs snapshot $orig@2
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/ |
H A D | history_008_pos.ksh | 40 # 2. Make a recursive snapshot. 65 run_and_verify "zfs snapshot -r $root_testfs@snap" "-i" 68 log_must zfs snapshot $root_testfs@snap2 69 log_must zfs snapshot $root_testfs@snap3
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/refquota/ |
H A D | refquota_001_pos.ksh | 68 log_must zfs snapshot $fs@snap 73 log_must zfs snapshot $sub@snap
|