/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/ |
H A D | bclone_common.kshlib | 77 typeset -r clone=$2 80 typeset -r clone_checksum=$(xxh128digest $clone) 83 log_fail "Clone $clone is corrupted with file size $filesize" 130 typeset -r clone="${dstdir}/clone" 150 clonefile -f $original "${clone}-tmp" 159 rm -f "${clone}-tmp" 179 clonefile -f $original "${clone}0" 181 clonefile -f "${clone}0" "${clone}2" 184 clonefile -f $original "${clone}1" 186 clonefile -f $original "${clone}1" [all …]
|
/freebsd/sys/x86/acpica/ |
H A D | acpi_apm.c | 204 struct apm_clone_data *clone; in apm_create_clone() local 206 clone = malloc(sizeof(*clone), M_APMDEV, M_WAITOK); in apm_create_clone() 207 clone->cdev = dev; in apm_create_clone() 208 clone->acpi_sc = acpi_sc; in apm_create_clone() 209 clone->notify_status = APM_EV_NONE; in apm_create_clone() 210 bzero(&clone->sel_read, sizeof(clone->sel_read)); in apm_create_clone() 211 knlist_init_mtx(&clone->sel_read.si_note, &acpi_mutex); in apm_create_clone() 218 clone->flags = ACPI_EVF_DEVD | ACPI_EVF_WRITE; in apm_create_clone() 220 clone->flags = ACPI_EVF_NONE; in apm_create_clone() 223 STAILQ_INSERT_TAIL(&acpi_sc->apm_cdevs, clone, entries); in apm_create_clone() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/ |
H A D | redacted_contents.ksh | 39 typeset clone="$POOL/${ds_name}_clone" 43 typeset clone_mnt="$(get_prop mountpoint $clone)" 50 log_must zfs snapshot $clone@snap1 51 log_must zfs redact $sendfs@snap book1 $clone@snap1 57 log_must zfs rollback -R $clone@snap 62 log_must zfs snapshot $clone@snap1 63 log_must zfs redact $sendfs@snap book3 $clone@snap1 67 log_must zfs rollback -R $clone@snap 72 log_must zfs snapshot $clone@snap1 73 log_must zfs redact $sendfs@snap book4 $clone@snap1 [all …]
|
H A D | redacted_holes.ksh | 37 typeset clone="$POOL/${ds_name}_clone" 41 typeset clone_mnt="$(get_prop mountpoint $clone)" 55 log_must zfs snapshot $clone@snap1 56 log_must zfs redact $sendfs@snap book1 $clone@snap1 60 log_must zfs rollback -R $clone@snap 66 log_must zfs snapshot $clone@snap1 67 log_must zfs redact $sendfs@snap book2 $clone@snap1 71 log_must zfs rollback -R $clone@snap 81 log_must zfs snapshot $clone@snap1 82 log_must zfs redact $sendfs@snap book3 $clone@snap1 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_mtime.ksh | 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/file) 59 o_atime=$(ls -E% all $TESTDIR/clone/file | awk '/atime/ {print $4}') 60 o_ctime=$(ls -E% all $TESTDIR/clone/file | awk '/ctime/ {print $4}') 61 o_mtime=$(ls -E% all $TESTDIR/clone/file | awk '/mtime/ {print $4}') [all …]
|
H A D | nopwrite_negative.ksh | 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 64 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 66 log_mustnot verify_nopwrite $origin $origin@a $origin/clone 74 log_must zfs clone -o compress=off $origin@a $origin/clone 75 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 77 log_mustnot verify_nopwrite $origin $origin@a $origin/clone [all …]
|
H A D | nopwrite_promoted_clone.ksh | 39 datasetexists $origin && destroy_dataset $TESTPOOL/clone -R 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 53 log_must zfs promote $TESTPOOL/clone 54 dd if=/$TESTPOOL/clone/file of=/$TESTDIR/file bs=1024k count=$MEGS \ 56 log_must verify_nopwrite $TESTPOOL/clone $TESTPOOL/clone@a $origin
|
H A D | nopwrite_copies.ksh | 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/file bs=1024k count=$MEGS \ 69 log_mustnot verify_nopwrite $origin $origin@a $origin/clone
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/ |
H A D | removal_nopwrite.ksh | 58 log_must zfs clone $origin@a $origin/clone 63 log_must zfs set copies=1 $origin/clone 64 log_must zfs set recordsize=8k $origin/clone 65 dd if=/$TESTDIR/file_8k of=/$TESTDIR/clone/file_8k bs=1024k \ 67 log_must verify_nopwrite $origin $origin@a $origin/clone 68 log_must zfs set copies=3 $origin/clone 69 dd if=/$TESTDIR/file_8k_copies of=/$TESTDIR/clone/file_8k_copies bs=1024k \ 71 log_must verify_nopwrite $origin $origin@a $origin/clone 73 log_must zfs set copies=1 $origin/clone 74 log_must zfs set recordsize=128k $origin/clone [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_promote/ |
H A D | zfs_promote_003_pos.ksh | 77 clone=$TESTPOOL/$TESTCLONE 84 set -A csnap "${clone}@$TESTSNAP" "${clone}@$TESTSNAP1" "${clone}@$TESTSNAP2" \ 85 "${clone}@$TESTSNAP3" 93 csnapdir=/$clone/$(get_snapdir_name) 107 log_must $ZFS clone ${snap[2]} $clone 108 log_must $MKFILE $FILESIZE /$clone/$CLONEFILE 109 log_must $RM -f /$clone/$TESTFILE2 112 log_must $ZFS promote $clone 119 for data in ${csnapfile[*]} $TESTDIR/$TESTFILE3 /$clone/$CLONEFILE; do 136 origin_prop=$(get_prop origin $clone) [all …]
|
H A D | zfs_promote_005_pos.ksh | 58 datasetexists $clone && log_must $ZFS destroy $clone 61 if datasetexists $clone ; then 63 log_must $ZFS destroy $clone 72 clone=$TESTPOOL/$TESTCLONE 76 log_must $ZFS clone $fssnap $clone 78 log_must $ZFS promote $clone 79 log_must $ZFS unmount $clone
|
H A D | zfs_promote_006_neg.ksh | 65 "$clone $TESTPOOL/$TESTFS" "- $clone" "-? $clone" 69 if datasetexists $clone; then 70 log_must $ZFS destroy $clone 82 clone=$TESTPOOL/$TESTCLONE 84 log_must $ZFS clone $snap $clone
|
H A D | zfs_promote_002_pos.ksh | 76 clone=$TESTPOOL/$TESTCLONE 77 csnap=$clone@$TESTSNAP 78 csnap1=$clone@$TESTSNAP1 86 log_must $ZFS clone $snap1 $clone 87 log_must $MKFILE $FILESIZE /$clone/$CLONEFILE 89 log_must $ZFS promote $clone 104 origin_prop=$(get_prop origin $clone) 106 log_fail "The dependency of $clone is not correct."
|
H A D | zfs_promote_004_pos.ksh | 57 log_must $ZFS promote $clone 75 clone=$TESTPOOL/$TESTCLONE 83 set -A csnap "${clone}@$TESTSNAP3" "${clone}@$TESTSNAP4" "${clone}@$TESTSNAP5" 107 log_must $ZFS clone ${snap[2]} $clone 109 log_must $RM -f /$clone/$TESTFILE2 119 log_must $ZFS clone ${csnap[1]} $clone1 139 origin_prop=$(get_prop origin $clone) 141 log_fail "The dependency is not correct for $clone after zfs promote."
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_promote/ |
H A D | zfs_promote_003_pos.ksh | 69 clone=$TESTPOOL/$TESTCLONE 76 set -A csnap "${clone}@$TESTSNAP" "${clone}@$TESTSNAP1" "${clone}@$TESTSNAP2" \ 77 "${clone}@$TESTSNAP3" 85 csnapdir=/$clone/.zfs/snapshot 99 log_must zfs clone ${snap[2]} $clone 100 log_must mkfile $FILESIZE /$clone/$CLONEFILE 101 log_must rm -f /$clone/$TESTFILE2 104 log_must zfs promote $clone 111 for data in ${csnapfile[*]} $TESTDIR/$TESTFILE3 /$clone/$CLONEFILE; do 128 origin_prop=$(get_prop origin $clone) [all …]
|
H A D | zfs_promote_005_pos.ksh | 49 datasetexists $clone && destroy_dataset $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 70 log_must zfs unmount $clone
|
H A D | zfs_promote_004_pos.ksh | 50 log_must zfs promote $clone 67 clone=$TESTPOOL/$TESTCLONE 75 set -A csnap "${clone}@$TESTSNAP3" "${clone}@$TESTSNAP4" "${clone}@$TESTSNAP5" 99 log_must zfs clone ${snap[2]} $clone 101 log_must rm -f /$clone/$TESTFILE2 111 log_must zfs clone ${csnap[1]} $clone1 131 origin_prop=$(get_prop origin $clone) 133 log_fail "The dependency is not correct for $clone after zfs promote."
|
H A D | zfs_promote_002_pos.ksh | 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) 99 log_fail "The dependency of $clone is not correct."
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/ |
H A D | zfs_destroy_007_neg.ksh | 62 datasetexists $clone && log_must $ZFS destroy $clone 72 clone=$fs/clone 73 clonesnap=$fs/clone@snap 76 log_must $ZFS clone $fssnap $clone 77 log_must $ZFS promote $clone 79 log_mustnot $ZFS destroy $clone
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/ |
H A D | xattr_005_pos.ksh | 47 log_must zfs destroy $TESTPOOL/$TESTFS/clone 61 log_must zfs clone $TESTPOOL/$TESTFS@snapshot1 $TESTPOOL/$TESTFS/clone 62 log_must zfs set mountpoint=$TESTDIR/clone $TESTPOOL/$TESTFS/clone 65 verify_xattr $TESTDIR/clone/myfile.$$ passwd /etc/passwd 68 create_xattr $TESTDIR/clone/myfile.$$ foo /etc/passwd 69 delete_xattr $TESTDIR/clone/myfile.$$ foo 75 verify_xattr $TESTDIR/clone/myfile.$$ passwd /etc/passwd 76 delete_xattr $TESTDIR/clone/myfile.$$ passwd
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/ |
H A D | zfs_destroy_007_neg.ksh | 54 datasetexists $clone && destroy_dataset $clone 64 clone=$fs/clone 65 clonesnap=$fs/clone@snap 71 log_must zfs clone $fssnap $clone 72 log_must zfs promote $clone 74 log_mustnot_expect "$KEY_WORDS" zfs destroy $clone
|
/freebsd/tests/sys/cddl/zfs/tests/xattr/ |
H A D | xattr_005_pos.ksh | 56 log_must $ZFS destroy $TESTPOOL/$TESTFS/clone 70 log_must $ZFS clone $TESTPOOL/$TESTFS@snapshot1 $TESTPOOL/$TESTFS/clone 71 log_must $ZFS set mountpoint=$TESTDIR/clone $TESTPOOL/$TESTFS/clone 74 verify_xattr $TESTDIR/clone/myfile.${TESTCASE_ID} passwd /etc/passwd 77 create_xattr $TESTDIR/clone/myfile.${TESTCASE_ID} foo /etc/passwd 78 delete_xattr $TESTDIR/clone/myfile.${TESTCASE_ID} foo 84 verify_xattr $TESTDIR/clone/myfile.${TESTCASE_ID} passwd /etc/passwd 85 delete_xattr $TESTDIR/clone/myfile.${TESTCASE_ID} passwd
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send_encrypted_hierarchy.ksh | 54 log_must zfs clone $POOL/$FS@snap $POOL/clone 68 log_must verify_encryption_root $POOL/clone $POOL/$FS 69 log_must verify_keylocation $POOL/clone "none" 70 log_must verify_origin $POOL/clone "$POOL/$FS@snap" 78 log_must zfs promote $POOL/clone 85 log_must verify_encryption_root $POOL/$FS $POOL/clone 89 log_must verify_encryption_root $POOL/clone $POOL/clone 90 log_must verify_keylocation $POOL/clone "prompt" 91 log_must verify_origin $POOL/clone "-"
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 208 clone) 281 clone) 727 typeset clone=$basefs/cfs.$stamp 730 user_run $user zfs clone $snap $clone 731 if datasetexists $clone ; then 736 user_run $user zfs clone $snap $clone 738 if datasetexists $clone ; then 743 user_run $user zfs clone $snap $clone 745 if datasetexists $clone ; then 751 user_run $user zfs clone $snap $clone [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/ |
H A D | block_cloning_copyfilerange_fallback.ksh | 56 log_must clonefile -f /$TESTPOOL/file /$TESTPOOL/clone 0 0 524288 59 log_must have_same_content /$TESTPOOL/file /$TESTPOOL/clone 61 typeset blocks=$(get_same_blocks $TESTPOOL file $TESTPOOL clone) 67 log_must clonefile -f /$TESTPOOL/file /$TESTPOOL/clone 32768 32768 65536 70 log_must have_same_content /$TESTPOOL/file /$TESTPOOL/clone 72 typeset blocks=$(get_same_blocks $TESTPOOL file $TESTPOOL clone) 78 log_must clonefile -f /$TESTPOOL/file /$TESTPOOL/clone 327680 327680 131072 81 log_must have_same_content /$TESTPOOL/file /$TESTPOOL/clone 83 typeset blocks=$(get_same_blocks $TESTPOOL file $TESTPOOL clone)
|