Searched refs:clone (Results 1 - 25 of 158) sorted by relevance

1234567

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_history/
H A Dzpool_history_001_neg.ksh47 clone=$TESTPOOL/clone
50 "-v $TESTPOOL" "$snap" "$clone" "nonexist" "TESTPOOL"
54 datasetexists $clone && log_must zfs destroy $clone
63 log_must zfs clone $snap $clone
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_007_neg.ksh42 # 2. Create a namespace-parent of origin clone.
43 # 3. Promote this clone
54 datasetexists $clone && log_must zfs destroy $clone
61 # Define variable $fssnap & and namespace-parent of origin clone.
64 clone=$fs/clone
65 clonesnap=$fs/clone@snap
71 log_must zfs clone $fssnap $clone
[all...]
H A Dzfs_destroy_009_pos.ksh34 # clone exists and destroy when clone is destroyed.
39 # 4. 'zfs destroy <clone>'
40 # 3. Verify that the snapshot and clone are destroyed.
47 setup_testenv clone
51 clone=$(eval echo \$${dstype}CLONE)
55 log_must zfs destroy $clone
57 log_mustnot datasetexists $clone
H A Dzfs_destroy_010_pos.ksh34 # snapshot and a clone of that snapshot, and the snapshot has been
38 # clone is destroyed.
41 # 2. Create a clone of the snapshot.
44 # 5. Verify that the snapshot and clone are destroyed.
51 setup_testenv clone
57 clone=$(eval echo \$${dstype}CLONE)
62 log_mustnot datasetexists $clone
H A Dzfs_destroy_004_pos.ksh52 datasetexists $clone && \
53 log_must zfs destroy -f $clone
87 clone=$TESTPOOL/$TESTCLONE
91 # Create filesystem and clone in the storage pool, mount them and
99 log_must zfs clone $snap $clone
102 log_must zfs set mountpoint=$mntp2 $clone
104 for arg in "$fs1 $mntp1" "$clone $mntp2"; do
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_promote/
H A Dzfs_promote_005_pos.ksh40 # 2. Create clone of fs.
41 # 3. Unmount fs, then verify 'zfs promote' clone still succeed.
49 datasetexists $clone && log_must zfs destroy $clone
52 if datasetexists $clone ; then
54 log_must zfs destroy $clone
63 clone=$TESTPOOL/$TESTCLONE
67 log_must zfs clone $fssnap $clone
69 log_must zfs promote $clone
[all...]
H A Dzfs_promote_006_neg.ksh38 # (2) non-existent clone
39 # (3) non-clone datasets:
57 "$clone $TESTPOOL/$TESTFS" "- $clone" "-? $clone"
61 if datasetexists $clone; then
62 log_must zfs destroy $clone
74 clone=$TESTPOOL/$TESTCLONE
76 log_must zfs clone $snap $clone
[all...]
H A Dzfs_promote_008_pos.ksh36 # 'zfs promote' can successfully promote a volume clone.
39 # 1. Create a volume clone
40 # 2. Promote the volume clone
55 log_assert "'zfs promote' can promote a volume clone."
60 clone=$TESTPOOL/volclone
61 csnap=$clone@$TESTSNAP
65 log_must zfs clone $snap $clone
68 log_must zfs promote $clone
79 origin_prop=$(get_prop origin $clone)
[all...]
H A Dzfs_promote_003_pos.ksh40 # 1. Create multiple snapshots and a clone to a middle point snapshot
41 # 2. Promote the clone filesystem
43 # correct datasets seperated by the clone point.
70 clone=$TESTPOOL/$TESTCLONE
76 # Array which stores the snapshots existing in the clone after promote operation
77 set -A csnap "${clone}@$TESTSNAP" "${clone}@$TESTSNAP1" "${clone}@$TESTSNAP2" \
78 "${clone}@$TESTSNAP3"
86 csnapdir=/$clone/
[all...]
H A Dzfs_promote_002_pos.ksh40 # 1. Create multiple snapshots and a clone of the last snapshot
41 # 2. Promote the clone filesystem
69 clone=$TESTPOOL/$TESTCLONE
70 csnap=$clone@$TESTSNAP
71 csnap1=$clone@$TESTSNAP1
79 log_must zfs clone $snap1 $clone
80 log_must mkfile $FILESIZE /$clone/$CLONEFILE
82 log_must zfs promote $clone
97 origin_prop=$(get_prop origin $clone)
[all...]
H A Dzfs_promote_004_pos.ksh41 # 2. Promote a clone filesystem
50 log_must zfs promote $clone
64 log_assert "'zfs promote' can deal with multi-level clone."
68 clone=$TESTPOOL/$TESTCLONE
75 # Array which stores the snapshots existing in the first clone
76 set -A csnap "${clone}@$TESTSNAP3" "${clone}@$TESTSNAP4" "${clone}@$TESTSNAP5"
77 # Array which stores the snapshots existing in the second clone after promote operation
83 # The data will inject into the first clone
[all...]
H A Dzfs_promote_001_pos.ksh37 # 'zfs promote' can promote a clone filesystem to no longer be dependent
41 # 1. Create a snapshot and a clone of the snapshot
42 # 2. Promote the clone filesystem
95 log_assert "'zfs promote' can promote a clone filesystem."
103 clone=$TESTPOOL/$TESTCLONE
104 cfile=/$clone/$CLONEFILE
105 csnap=$clone@$TESTSNAP
106 csnapfile=/$clone/.zfs/snapshot/$TESTSNAP/$TESTFILE0
113 log_must zfs clone $snap $clone
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dsrn.c58 * Minor number is instance<<8 + clone minor from range 1-255;
259 int clone; local
261 clone = SRN_MINOR_TO_CLONE(getminor(dev));
262 if ((events & (POLLIN | POLLRDNORM)) && srn_poll_cnt[clone]) {
267 *phpp = &srn_pollhead[clone];
303 int clone; local
309 for (clone = 1; clone < SRN_MAX_CLONE - 1; clone++)
310 if (!srn.srn_clones[clone])
337 int clone; local
377 int clone = SRN_MINOR_TO_CLONE(getminor(dev)); local
519 int clone, count; local
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/xattr/
H A Dxattr_005_pos.ksh35 # read/write/create/delete xattr on a clone filesystem
40 # 2. Snapshot the filesystem and clone it
42 # 4. Verify we can create new xattrs on new files created on the clone
47 log_must zfs destroy $TESTPOOL/$TESTFS/clone
52 log_assert "read/write/create/delete xattr on a clone filesystem"
59 # snapshot & clone the filesystem
61 log_must zfs clone $TESTPOOL/$TESTFS@snapshot1 $TESTPOOL/$TESTFS/clone
62 log_must zfs set mountpoint=$TESTDIR/clone $TESTPOOL/$TESTFS/clone
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dzfs_promote_001_neg.ksh42 # 1. Verify we don't have permissions to promote a clone
48 log_mustnot zfs promote $TESTPOOL/$TESTFS/clone
51 if datasetexists $TESTPOOL/$TESTFS/clone@snap
53 log_fail "Clone $TESTPOOl/$TESTFS/clone was actually promoted!"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/nopwrite/
H A Dnopwrite_promoted_clone.ksh23 # Verify that nopwrite still works for a dataset that becomes a clone via
27 # 1. Create a clone suitable for nopwrite.
28 # 2. Disable compression and checksum on the clone, and promote it.
29 # 3. Overwrite the file in the clone (former origin fs) and verify it
39 datasetexists $origin && log_must zfs destroy -R $TESTPOOL/clone
43 log_assert "nopwrite works on a dataset that becomes a clone via promotion."
50 log_must zfs clone $origin@a $TESTPOOL/clone
51 log_must zfs set compress=off $TESTPOOL/clone
52 log_must zfs set checksum=off $TESTPOOL/clone
[all...]
H A Dnopwrite_volume.ksh26 # 1. Create a clone of a volume that fits the criteria for nopwrite.
33 clone="$TESTPOOL/clone"
35 volclone="/dev/zvol/rdsk/$clone"
51 log_must zfs clone $origin@a $clone
52 log_must zfs set compress=on $clone
53 log_must zfs set checksum=sha256 $clone
55 log_fail "dd into $clone failed."
56 log_must verify_nopwrite $origin $origin@a $clone
[all...]
H A Dnopwrite_mtime.ksh26 # 1. Create a clone with nopwrite enabled.
27 # 2. Write to the file in that clone and verify the mtime and ctime change,
48 log_must zfs clone $origin@a $origin/clone
50 o_atime=$(ls -E% all $TESTDIR/clone/file | awk '/atime/ {print $4}')
51 o_ctime=$(ls -E% all $TESTDIR/clone/file | awk '/ctime/ {print $4}')
52 o_mtime=$(ls -E% all $TESTDIR/clone/file | awk '/mtime/ {print $4}')
53 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
55 atime=$(ls -E% all $TESTDIR/clone/file | awk '/atime/ {print $4}')
56 ctime=$(ls -E% all $TESTDIR/clone/fil
[all...]
H A Dnopwrite_negative.ksh23 # Verify that duplicate writes to a clone are accounted as new data if the
29 # 3. The clone does not have compression.
30 # 4. The clone does not have the appropriate checksum.
49 log_must zfs clone -o compress=on $origin@a $origin/clone
50 log_must zfs set checksum=sha256 $origin/clone
51 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
53 log_mustnot verify_nopwrite $origin $origin@a $origin/clone
63 log_must zfs clone $origin@a $origin/clone
[all...]
H A Dnopwrite_copies.ksh26 # 1. Create a clone with copies set higher than the origin fs
49 log_must zfs clone $origin@a $origin/clone
50 zfs set copies=3 $origin/clone
51 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
53 log_mustnot verify_nopwrite $origin $origin@a $origin/clone
65 log_must zfs clone $origin@a $origin/clone
66 zfs set copies=1 $origin/clone
67 dd if=/$TESTDIR/file of=/$TESTDIR/clone/fil
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_012_pos.ksh37 # 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
44 # 3. promote the clone
47 # 6. clone a snapshot from the snapshot tree
48 # 7. promote the clone
49 # 8. verify that the clone is promoted correctly.
64 if snapexists $clone@$TESTSNAP1; then
75 clone=$ctr/$TESTCLONE
80 snapctrclone=$clone
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/rdc/
H A Drdcsrv.h38 int clone; member in struct:rdc_disptab_s
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_clone/
H A Dzfs_clone_008_neg.ksh37 # 'zfs clone -o <filesystem>' fails with bad <filesystem> arguments, including:
43 # 2. Execute 'zfs clone -o <filesystem>' with each argument
58 log_assert "Verify 'zfs clone -o <filesystem>' fails with bad <filesystem> argument."
64 log_mustnot zfs clone -o ${RW_FS_PROP[i]} -o ${RW_FS_PROP[i]} \
66 log_mustnot zfs clone -p -o ${RW_FS_PROP[i]} -o ${RW_FS_PROP[i]} \
73 log_mustnot zfs clone -o ${VOL_ONLY_PROP[i]} \
75 log_mustnot zfs clone -p -o ${VOL_ONLY_PROP[i]} \
80 log_pass "'zfs clone -o <filesystem>' fails with bad <filesystem> argument."
H A Dzfs_clone_009_neg.ksh37 # 'zfs clone -o <volume>' fails with badly formed arguments,including:
43 # 2. For each argument, execute 'zfs clone -o <volume>'
58 log_assert "Verify 'zfs clone -o <volume>' fails with bad <volume> argument."
64 log_mustnot zfs clone -o ${RW_VOL_PROP[i]} -o ${RW_VOL_PROP[i]} \
66 log_mustnot zfs clone -p -o ${RW_VOL_PROP[i]} -o ${RW_VOL_PROP[i]} \
73 log_mustnot zfs clone -o ${FS_ONLY_PROP[i]} \
75 log_mustnot zfs clone -p -o ${FS_ONLY_PROP[i]} \
80 log_pass "Verify 'zfs clone -o <volume>' fails with bad <volume> argument."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/userquota/
H A Duserquota_011_pos.ksh38 # snapshot,clone,rename,upgrade,send,receive.
43 # 2. Check set user|group quota via zfs snapshot|clone|list -o
45 # 4. Check the user|group quota can not change during zfs clone
51 for ds in $TESTPOOL/fs $TESTPOOL/fs-rename $TESTPOOL/fs-clone; do
76 log_note "clone fs gets its parent's userquota/groupquota initially"
77 log_must zfs clone -o userquota@$QUSER1=$UQUOTA_SIZE \
79 $TESTPOOL/fs@snap $TESTPOOL/fs-clone
84 log_must check_quota "userquota@$QUSER1" $TESTPOOL/fs-clone "$UQUOTA_SIZE"
85 log_must check_quota "groupquota@$QGROUP" $TESTPOOL/fs-clone "$GQUOTA_SIZE"
88 $TESTPOOL/fs-clone >/de
[all...]

Completed in 148 milliseconds

1234567