/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_history/ |
H A D | zpool_history_001_neg.ksh | 47 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
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_history/ |
H A D | zpool_history_001_neg.ksh | 61 clone=$TESTPOOL/clone 64 "-v $TESTPOOL" "$snap" "$clone" "nonexist" "TESTPOOL" 68 datasetexists $clone && log_must $ZFS destroy $clone 77 log_must $ZFS clone $snap $clone
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/ |
H A D | zfs_destroy_007_neg.ksh | 42 # 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...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_promote/ |
H A D | zfs_promote_005_pos.ksh | 40 # 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 D | zfs_promote_008_pos.ksh | 36 # '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 D | zfs_promote_006_neg.ksh | 38 # (2) non-existent clone 39 # (3) non-clone datasets: 54 clone=$TESTPOOL/$TESTCLONE 60 "$clone $TESTPOOL/$TESTFS" "- $clone" "-? $clone" \ 65 if datasetexists $clone; then 66 log_must zfs destroy $clone
|
H A D | zfs_promote_003_pos.ksh | 40 # 1. Create multiple snapshots and a clone to a middle point snapshot 41 # 2. Promote the clone filesystem 43 # correct datasets separated 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...] |
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/ |
H A D | zfs_destroy_007_neg.ksh | 46 # 2. Create a namespace-parent of origin clone. 47 # 3. Promote this clone 67 datasetexists $clone && log_must $ZFS destroy $clone 74 # Define variable $fssnap & and namespace-parent of origin clone. 77 clone=$fs/clone 78 clonesnap=$fs/clone@snap 81 log_must $ZFS clone $fssnap $clone [all...] |
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_promote/ |
H A D | zfs_promote_005_pos.ksh | 45 # 2. Create clone of fs. 46 # 3. Unmount fs, then verify 'zfs promote' clone still succeed. 63 datasetexists $clone && log_must $ZFS destroy $clone 66 if datasetexists $clone ; then 68 log_must $ZFS destroy $clone 77 clone=$TESTPOOL/$TESTCLONE 81 log_must $ZFS clone $fssnap $clone 83 log_must $ZFS promote $clone [all...] |
H A D | zfs_promote_006_neg.ksh | 42 # (2) non-existent clone 43 # (3) non-clone datasets: 70 "$clone $TESTPOOL/$TESTFS" "- $clone" "-? $clone" 74 if datasetexists $clone; then 75 log_must $ZFS destroy $clone 87 clone=$TESTPOOL/$TESTCLONE 89 log_must $ZFS clone $snap $clone [all...] |
H A D | zfs_promote_008_pos.ksh | 40 # 'zfs promote' can successfully promote a volume clone. 43 # 1. Create a volume clone 44 # 2. Promote the volume clone 68 log_assert "'zfs promote' can promote a volume clone." 73 clone=$TESTPOOL/volclone 74 csnap=$clone@$TESTSNAP 78 log_must $ZFS clone $snap $clone 81 log_must $ZFS promote $clone 92 origin_prop=$(get_prop origin $clone) [all...] |
H A D | zfs_promote_002_pos.ksh | 43 # 1. Create multiple snapshots and a clone of the last snapshot 44 # 2. Promote the clone filesystem 81 clone=$TESTPOOL/$TESTCLONE 82 csnap=$clone@$TESTSNAP 83 csnap1=$clone@$TESTSNAP1 91 log_must $ZFS clone $snap1 $clone 92 log_must $MKFILE $FILESIZE /$clone/$CLONEFILE 94 log_must $ZFS promote $clone 109 origin_prop=$(get_prop origin $clone) [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/ |
H A D | tst.promote_conflict.ksh | 21 # Attempting to promote a clone when it shares a snapshot name with 29 clone=$TESTPOOL/$TESTFS/testchild_clone 34 for to_destroy in $fs $clone; do 43 log_must zfs clone $fs@$snap $clone 44 log_must zfs snapshot $clone@$snap 53 $ZCP_ROOT/synctask_core/tst.promote_conflict.zcp $clone 55 log_pass "Promoting a clone with a conflicting snapshot fails."
|
H A D | tst.get_string_props.ksh | 28 clone=$TESTPOOL/$TESTCLONE 33 datasetexists $clone && log_must zfs destroy $clone 41 create_clone $snap $clone 43 log_must_program $TESTPOOL $ZCP_ROOT/synctask_core/tst.get_string_props.zcp $fs $snap $clone
|
H A D | tst.promote_simple.ksh | 21 # Promoting a clone should work correctly. 27 clone=$TESTPOOL/$TESTFS/testchild_clone 32 for to_destroy in $fs $clone; do 41 log_must zfs clone $snap $clone 44 assert(zfs.sync.promote("$clone") == 0) 47 log_pass "Promoting a clone with a channel program works."
|
/freebsd-13-stable/contrib/googletest/googletest/samples/ |
H A D | sample2.cc | 41 char* const clone = new char[ len + 1 ]; local 42 memcpy(clone, a_c_string, len + 1); 44 return clone;
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/ |
H A D | xattr_005_pos.ksh | 35 # 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...] |
/freebsd-13-stable/tests/sys/cddl/zfs/tests/xattr/ |
H A D | xattr_005_pos.ksh | 40 # read/write/create/delete xattr on a clone filesystem 45 # 2. Snapshot the filesystem and clone it 47 # 4. Verify we can create new xattrs on new files created on the clone 61 log_must $ZFS destroy $TESTPOOL/$TESTFS/clone 66 log_assert "read/write/create/delete xattr on a clone filesystem" 73 # snapshot & clone the filesystem 75 log_must $ZFS clone $TESTPOOL/$TESTFS@snapshot1 $TESTPOOL/$TESTFS/clone 76 log_must $ZFS set mountpoint=$TESTDIR/clone $TESTPOOL/$TESTFS/clone [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/ |
H A D | zfs_promote_001_neg.ksh | 42 # 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!"
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_promoted_clone.ksh | 23 # 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 D | nopwrite_mtime.ksh | 26 # 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 51 o_atime=$(stat -c %X $TESTDIR/clone/file) 52 o_ctime=$(stat -c %Z $TESTDIR/clone/file) 53 o_mtime=$(stat -c %Y $TESTDIR/clone/file) 55 o_atime=$(stat -f "%a" $TESTDIR/clone/file) 56 o_ctime=$(stat -f "%c" $TESTDIR/clone/file) 57 o_mtime=$(stat -f "%m" $TESTDIR/clone/fil [all...] |
H A D | nopwrite_volume.ksh | 26 # 1. Create a clone of a volume that fits the criteria for nopwrite. 33 clone="$TESTPOOL/clone" 35 volclone="${ZVOL_RDEVDIR}/$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 56 log_fail "dd into $clone failed." 57 log_must verify_nopwrite $origin $origin@a $clone [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/ |
H A D | redacted_many_clones.ksh | 26 # The first modification is at an offset unique to each clone, and the 36 typeset clone="$POOL/${ds_name}_clone" 40 typeset clone_mnt="$(get_prop mountpoint $clone)" 48 # Fill in both the last block, and a different block in every clone. 50 log_must zfs clone $sendfs@snap ${clone}$i 51 mntpnt=$(get_prop mountpoint ${clone}$i) 56 log_must zfs snapshot ${clone}$i@snap 61 log_must zfs redact $sendfs@snap book1 $clone{1..32}@snap 66 log_mustnot zfs redact $sendfs@snap book2 $clone{ [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/ |
H A D | snapshot_012_pos.ksh | 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 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...] |
/freebsd-13-stable/tests/sys/cddl/zfs/tests/snapshot/ |
H A D | snapshot_012_pos.ksh | 40 # Verify 'snapshot -r' can create snapshot for promoted clone, and vice 41 # versa, a clone filesystem from the snapshot created by 'snapshot -r' 46 # 2. snapshot a filesystem and clone the snapshot 47 # 3. promote the clone 50 # 6. clone a snapshot from the snapshot tree 51 # 7. promote the clone 52 # 8. verify that the clone is promoted correctly. 76 if snapexists $clone@$TESTSNAP1; then 87 clone=$ctr/$TESTCLONE 92 snapctrclone=$clone [all...] |