| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
| H A D | zfs_unmount_unload_keys.ksh | 49 datasetexists $TESTPOOL/$TESTFS2 && \ 50 destroy_dataset $TESTPOOL/$TESTFS2 -r 51 datasetexists $TESTPOOL/$TESTFS2/newroot && \ 52 destroy_dataset $TESTPOOL/$TESTFS2/newroot -r 53 datasetexists $TESTPOOL/$TESTFS2/child && \ 54 destroy_dataset $TESTPOOL/$TESTFS2/child -r 60 …ust eval "echo 'password' | zfs create -o encryption=on -o keyformat=passphrase $TESTPOOL/$TESTFS2" 61 … "echo 'password' | zfs create -o encryption=on -o keyformat=passphrase $TESTPOOL/$TESTFS2/newroot" 62 log_must zfs create $TESTPOOL/$TESTFS2/child 64 log_must zfs umount -u $TESTPOOL/$TESTFS2/newroot [all …]
|
| H A D | zfs_unmount_001_pos.ksh | 58 datasetexists $TESTPOOL/$TESTFS2 && \ 59 destroy_dataset $TESTPOOL/$TESTFS2 73 if ! datasetexists $TESTPOOL/$TESTFS2 ; then 74 log_must zfs create $TESTPOOL/$TESTFS2 76 $TESTPOOL/$TESTFS2 79 unmounted $TESTPOOL/$TESTFS2 && \ 80 log_must zfs mount $TESTPOOL/$TESTFS2 94 set -A dev "$TESTPOOL/$TESTFS2" "$TESTDIR2"
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/ |
| H A D | zfs_mount_recursive.ksh | 54 log_must datasetexists $TESTPOOL/$TESTFS2 && \ 55 destroy_dataset $TESTPOOL/$TESTFS2 -R 64 log_must zfs create $TESTPOOL/$TESTFS2 66 log_must zfs create $TESTPOOL/$TESTFS2/child1 67 log_must zfs create $TESTPOOL/$TESTFS2/child2 68 log_must zfs create $TESTPOOL/$TESTFS2/child3 69 log_must zfs create $TESTPOOL/$TESTFS2/child2/subchild 87 log_must mounted $TESTPOOL/$TESTFS2 89 log_must mounted $TESTPOOL/$TESTFS2/child1 90 log_must mounted $TESTPOOL/$TESTFS2/child2 [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
| H A D | send_mixed_raw.ksh | 54 datasetexists $TESTPOOL/$TESTFS2 && \ 55 destroy_dataset $TESTPOOL/$TESTFS2 -r 76 "zfs receive $TESTPOOL/$TESTFS2" 77 log_must eval "echo $passphrase | zfs load-key $TESTPOOL/$TESTFS2" 78 log_must eval "zfs send -w $TESTPOOL/$TESTFS2@1 |" \ 83 "zfs receive $TESTPOOL/$TESTFS2" 84 log_must eval "zfs send -w -i $TESTPOOL/$TESTFS2@1 $TESTPOOL/$TESTFS2@2 |" \ 88 "zfs receive $TESTPOOL/$TESTFS2" 89 log_mustnot eval "zfs send -w -i $TESTPOOL/$TESTFS2@2 $TESTPOOL/$TESTFS2@3 |" \ 93 log_must zfs destroy -r $TESTPOOL/$TESTFS2 [all …]
|
| H A D | send_encrypted_files.ksh | 49 datasetexists $TESTPOOL/$TESTFS2 && \ 50 destroy_dataset $TESTPOOL/$TESTFS2 -r 67 -o keylocation=file://$keyfile $TESTPOOL/$TESTFS2 70 log_must touch /$TESTPOOL/$TESTFS2/empty 71 log_must mkfile 512 /$TESTPOOL/$TESTFS2/small 72 log_must mkfile 32M /$TESTPOOL/$TESTFS2/full 73 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS2/sparse \ 76 log_must mkdir -p /$TESTPOOL/$TESTFS2/dir 78 log_must mkfile 512 /$TESTPOOL/$TESTFS2/dir/file-$i 81 log_must mkdir -p /$TESTPOOL/$TESTFS2/xattrondir [all …]
|
| H A D | send_encrypted_truncated_files.ksh | 45 datasetexists $TESTPOOL/$TESTFS2 && \ 46 destroy_dataset $TESTPOOL/$TESTFS2 -r 69 -o keylocation=file://$keyfile $TESTPOOL/$TESTFS2 73 log_must zfs set recordsize=128k $TESTPOOL/$TESTFS2 76 log_must mkfile 32M /$TESTPOOL/$TESTFS2/truncated 77 log_must mkfile 524288 /$TESTPOOL/$TESTFS2/truncated2 78 log_must mkfile 524288 /$TESTPOOL/$TESTFS2/truncated3 79 log_must mkfile 1024 /$TESTPOOL/$TESTFS2/truncated4 81 log_must zfs snapshot $TESTPOOL/$TESTFS2@snap1 92 log_must truncate -s 131072 /$TESTPOOL/$TESTFS2/truncated [all …]
|
| H A D | send_leak_keymaps.ksh | 43 datasetexists $TESTPOOL/$TESTFS2 && \ 44 destroy_dataset $TESTPOOL/$TESTFS2 -r 58 -o keylocation=file://$keyfile $TESTPOOL/$TESTFS2 60 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS2/testfile bs=128K count=4 \ 65 log_must zfs snapshot $TESTPOOL/$TESTFS2@snap_$i 66 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS2/testfile bs=128K \ 70 log_must eval "zfs send $TESTPOOL/$TESTFS2@snap_0 | zfs recv $TESTPOOL/recv" 74 log_must zfs get -Hpd 1 -t snapshot all $TESTPOOL/$TESTFS2 &>/dev/null 75 log_must eval "zfs send -I $TESTPOOL/$TESTFS2@snap_$((i - 3)) \ 76 $TESTPOOL/$TESTFS2@snap_$i | zfs recv $TESTPOOL/recv"
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_send_delegation_user/ |
| H A D | zfs_send_usertest.ksh | 58 log_must zfs create $TESTPOOL/$TESTFS2 65 log_must zfs allow $OTHER1 $perms $TESTPOOL/$TESTFS2 66 log_must chown ${OTHER1}:${OTHER_GROUP} /$TESTPOOL/$TESTFS2 78 …R1 sh -c "'zfs send $TESTPOOL/$TESTFS1@snap1 | zfs receive -u $TESTPOOL/$TESTFS2/zfsrecv0_user_dat… 80 if [ -s $TESTPOOL/$TESTFS2/zfsrecv0_user_datastream.$$ ] 82 log_fail "A zfs recieve was completed in $TESTPOOL/$TESTFS2/zfsrecv0_user_datastream !" 84 …sh -c "'zfs send -w $TESTPOOL/$TESTFS1@snap1 | zfs receive -u $TESTPOOL/$TESTFS2/zfsrecv0raw_user_… 86 if [ -s $TESTPOOL/$TESTFS2/zfsrecv0raw_user_datastream.$$ ] 88 log_fail "A zfs recieve was completed in $TESTPOOL/$TESTFS2/zfsrecv0raw_user_datastream !" 95 …R1 sh -c "'zfs send $TESTPOOL/$TESTFS1@snap1 | zfs receive -u $TESTPOOL/$TESTFS2/zfsrecv1_user_dat… [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/ |
| H A D | zfs_rename_encrypted_child.ksh | 45 datasetexists $TESTPOOL/$TESTFS2 && \ 46 destroy_dataset $TESTPOOL/$TESTFS2 -r 56 "-o keyformat=passphrase -o keylocation=prompt $TESTPOOL/$TESTFS2" 57 log_must zfs create $TESTPOOL/$TESTFS2/child 58 log_must zfs create $TESTPOOL/$TESTFS2/child/grandchild 62 log_mustnot zfs rename $TESTPOOL/$TESTFS2/child/grandchild \ 65 log_mustnot zfs rename $TESTPOOL/$TESTFS2/child/grandchild \ 68 log_must zfs rename $TESTPOOL/$TESTFS2/child/grandchild \ 69 $TESTPOOL/$TESTFS2/child/grandchild2 70 log_must verify_encryption_root $TESTPOOL/$TESTFS2/child/grandchild2 \ [all …]
|
| H A D | zfs_rename_to_encrypted.ksh | 40 datasetexists $TESTPOOL/$TESTFS2 && \ 41 destroy_dataset $TESTPOOL/$TESTFS2 -r 49 "-o keyformat=passphrase -o keylocation=prompt $TESTPOOL/$TESTFS2" 50 log_must zfs rename $TESTPOOL/$TESTFS $TESTPOOL/$TESTFS2/$TESTFS 51 log_must test "$(get_prop 'encryption' $TESTPOOL/$TESTFS2/$TESTFS)" == "off"
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/ |
| H A D | zfs_create_encrypted.ksh | 75 datasetexists $TESTPOOL/$TESTFS2 && \ 76 destroy_dataset $TESTPOOL/$TESTFS2 -r 108 "-o keyformat=passphrase $TESTPOOL/$TESTFS2" 110 log_must zfs create $TESTPOOL/$TESTFS2/c1 111 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS2/c2 113 "$TESTPOOL/$TESTFS2/c3" 115 "-o keylocation=prompt $TESTPOOL/$TESTFS2/c4" 117 log_must zfs create -o encryption=off $TESTPOOL/$TESTFS2/c5 118 log_must test "$(get_prop 'encryption' $TESTPOOL/$TESTFS2/c5)" == "off" 121 $TESTPOOL/$TESTFS2/c5 [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_send_delegation/ |
| H A D | zfs_send_test.ksh | 57 log_must zfs create $TESTPOOL/$TESTFS2 65 log_must zfs allow $OTHER1 $perms $TESTPOOL/$TESTFS2 75 log_must eval "zfs send $TESTPOOL/$TESTFS1@snap1 | zfs receive $TESTPOOL/$TESTFS2/zfsrecv0_datastre… 76 log_must eval "zfs send -w $TESTPOOL/$TESTFS1@snap1 | zfs receive $TESTPOOL/$TESTFS2/zfsrecv0raw_da… 84 log_must eval "zfs send $TESTPOOL/$TESTFS1@snap1 | zfs receive $TESTPOOL/$TESTFS2/zfsrecv1_datastre… 85 log_must eval "zfs send -w $TESTPOOL/$TESTFS1@snap1 | zfs receive $TESTPOOL/$TESTFS2/zfsrecv1raw_da… 92 log_must eval "zfs send $TESTPOOL/$TESTFS1@snap1 | zfs receive $TESTPOOL/$TESTFS2/zfsrecv2_datastre… 93 log_must eval "zfs send -w $TESTPOOL/$TESTFS1@snap1 | zfs receive $TESTPOOL/$TESTFS2/zfsrecv2raw_da… 101 log_must eval "zfs send $TESTPOOL/$TESTFS1@snap1 | zfs receive $TESTPOOL/$TESTFS2/zfsrecv3_datastre… 102 log_must eval "zfs send -w $TESTPOOL/$TESTFS1@snap1 | zfs receive $TESTPOOL/$TESTFS2/zfsrecv3raw_da… [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/ |
| H A D | zfs_receive_raw_incremental.ksh | 49 datasetexists $TESTPOOL/$TESTFS2 && \ 50 destroy_dataset $TESTPOOL/$TESTFS2 -r 77 log_must eval "zfs send -w $snap1 | zfs receive $TESTPOOL/$TESTFS2" 85 log_mustnot eval "zfs receive $TESTPOOL/$TESTFS2 < $ibackup_trunc" 86 log_mustnot eval "echo $passphrase2 | zfs load-key $TESTPOOL/$TESTFS2" 87 log_must eval "echo $passphrase | zfs load-key $TESTPOOL/$TESTFS2" 88 log_must zfs unload-key $TESTPOOL/$TESTFS2 90 log_must eval "zfs receive $TESTPOOL/$TESTFS2 < $ibackup" 91 log_must eval "echo $passphrase2 | zfs mount -l $TESTPOOL/$TESTFS2" 93 typeset cksum1=$(xxh128digest /$TESTPOOL/$TESTFS2/$TESTFILE0)
|
| H A D | zfs_receive_from_encrypted.ksh | 47 datasetexists $TESTPOOL/$TESTFS2 && \ 48 destroy_dataset $TESTPOOL/$TESTFS2 -r 56 typeset snap="$TESTPOOL/$TESTFS2@snap" 60 "-o keyformat=passphrase $TESTPOOL/$TESTFS2" 62 log_must mkfile 1M /$TESTPOOL/$TESTFS2/$TESTFILE0 63 typeset checksum=$(xxh128digest /$TESTPOOL/$TESTFS2/$TESTFILE0) 78 log_must eval "zfs send $snap | zfs receive $TESTPOOL/$TESTFS2/c1" 80 typeset cksum2=$(xxh128digest /$TESTPOOL/$TESTFS2/c1/$TESTFILE0)
|
| H A D | zfs_receive_from_zstd.ksh | 46 datasetexists $TESTPOOL/$TESTFS2 && \ 47 destroy_dataset $TESTPOOL/$TESTFS2 -r 81 log_must eval "zfs send -ec $snap | zfs receive $TESTPOOL/$TESTFS2" 83 typeset cksum1=$(xxh128digest /$TESTPOOL/$TESTFS2/$TESTFILE0) 88 read -r obj _ < <(ls -i /$TESTPOOL/$TESTFS2/$TESTFILE0) 89 log_note "file /$TESTPOOL/$TESTFS2/$TESTFILE0 has object number $obj" 91 output=$(zdb -Zddddddbbbbbb $TESTPOOL/$TESTFS2 $obj 2> /dev/null \ 94 log_note "block 0 of /$TESTPOOL/$TESTFS2/$TESTFILE0 has a DVA of $dva"
|
| H A D | zfs_receive_raw.ksh | 50 datasetexists $TESTPOOL/$TESTFS2 && \ 51 destroy_dataset $TESTPOOL/$TESTFS2 -r 70 log_must eval "zfs send -w $snap | zfs receive $TESTPOOL/$TESTFS2" 72 keystatus=$(get_prop keystatus $TESTPOOL/$TESTFS2) 76 log_must eval "echo $passphrase | zfs mount -l $TESTPOOL/$TESTFS2" 78 typeset cksum1=$(xxh128digest /$TESTPOOL/$TESTFS2/$TESTFILE0)
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_clone/ |
| H A D | zfs_clone_encrypted.ksh | 47 datasetexists $TESTPOOL/$TESTFS2 && \ 48 destroy_dataset $TESTPOOL/$TESTFS2 -f 61 $TESTPOOL/$TESTFS2 63 "$TESTPOOL/$TESTFS1@now $TESTPOOL/$TESTFS2" 64 log_must zfs clone $TESTPOOL/$TESTFS1@now $TESTPOOL/$TESTFS2 67 log_must verify_encryption_root $TESTPOOL/$TESTFS2 $TESTPOOL/$TESTFS1 71 log_must zfs unmount $TESTPOOL/$TESTFS2 78 log_must key_available $TESTPOOL/$TESTFS2 82 log_must zfs mount $TESTPOOL/$TESTFS2
|
| /src/tests/sys/cddl/zfs/tests/cli_root/zfs_unmount/ |
| H A D | zfs_unmount_001_pos.ksh | 65 datasetexists $TESTPOOL/$TESTFS2 && \ 66 log_must $ZFS destroy $TESTPOOL/$TESTFS2 80 if ! datasetexists $TESTPOOL/$TESTFS2 ; then 81 log_must $ZFS create $TESTPOOL/$TESTFS2 83 $TESTPOOL/$TESTFS2 86 unmounted $TESTPOOL/$TESTFS2 && \ 87 log_must $ZFS mount $TESTPOOL/$TESTFS2 101 set -A dev "$TESTPOOL/$TESTFS2" "$TESTDIR2"
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_scrub/ |
| H A D | zpool_scrub_encrypted_unloaded.ksh | 42 datasetexists $TESTPOOL/$TESTFS2 && \ 43 destroy_dataset $TESTPOOL/$TESTFS2 50 "-o keyformat=passphrase $TESTPOOL/$TESTFS2" 52 typeset mntpnt=$(get_prop mountpoint $TESTPOOL/$TESTFS2) 59 log_must zfs unmount $TESTPOOL/$TESTFS2 60 log_must zfs unload-key $TESTPOOL/$TESTFS2 66 log_must eval "echo 'password' | zfs mount -l $TESTPOOL/$TESTFS2"
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/ |
| H A D | zfs_destroy_015_pos.ksh | 35 datasetexists $TESTPOOL/$TESTFS2 && destroy_dataset $TESTPOOL/$TESTFS2 -R 119 log_must zfs create $TESTPOOL/$TESTFS2 120 log_must zfs snapshot $TESTPOOL/$TESTFS2@fs2snap 121 log_must zfs create $TESTPOOL/$TESTFS1/$TESTFS2 122 log_must zfs snapshot $TESTPOOL/$TESTFS1/$TESTFS2@fs12snap 124 long_arg=$TESTPOOL/$TESTFS1@snap1,$TESTPOOL/$TESTFS2@fs2snap, 125 long_arg=$long_arg$TESTPOOL/$TESTFS1/$TESTFS2@fs12snap 128 log_must snapexists $TESTPOOL/$TESTFS2@fs2snap 129 log_must snapexists $TESTPOOL/$TESTFS1/$TESTFS2@fs12snap 132 log_must snapexists $TESTPOOL/$TESTFS2@fs2snap [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_diff/ |
| H A D | zfs_diff_encrypted.ksh | 36 destroy_dataset "$TESTPOOL/$TESTFS2" "-r" 57 -o encryption=on -o keyformat=passphrase $TESTPOOL/$TESTFS2" 58 MNTPOINT="$(get_prop mountpoint $TESTPOOL/$TESTFS2)" 59 log_must zfs snapshot $TESTPOOL/$TESTFS2@snap1 61 log_must zfs snapshot $TESTPOOL/$TESTFS2@snap2 62 log_must zfs diff -Ft $TESTPOOL/$TESTFS2@snap1 $TESTPOOL/$TESTFS2@snap2
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unshare/ |
| H A D | zfs_unshare_002_pos.ksh | 72 snapexists "$TESTPOOL/$TESTFS2@snapshot" && \ 73 destroy_dataset $TESTPOOL/$TESTFS2@snapshot -f 75 datasetexists "$TESTPOOL/$TESTFS2" && \ 76 destroy_dataset $TESTPOOL/$TESTFS2 -f 124 log_must zfs create $TESTPOOL/$TESTFS2 125 log_must zfs snapshot $TESTPOOL/$TESTFS2@snapshot 126 log_must zfs clone $TESTPOOL/$TESTFS2@snapshot $TESTPOOL/$TESTCLONE
|
| /src/tests/sys/cddl/zfs/tests/cli_root/zfs_unshare/ |
| H A D | zfs_unshare_002_pos.ksh | 77 if snapexists "$TESTPOOL/$TESTFS2@snapshot"; then 78 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2@snapshot 81 if datasetexists "$TESTPOOL/$TESTFS2"; then 82 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2 130 log_must $ZFS create $TESTPOOL/$TESTFS2 131 log_must $ZFS snapshot $TESTPOOL/$TESTFS2@snapshot 132 log_must $ZFS clone $TESTPOOL/$TESTFS2@snapshot $TESTPOOL/$TESTCLONE
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/ |
| H A D | zfs_load-key_all.ksh | 42 datasetexists $TESTPOOL/$TESTFS2 && destroy_dataset $TESTPOOL/$TESTFS2 55 -o keylocation=$(get_https_base_url)/PASSPHRASE $TESTPOOL/$TESTFS2 68 log_must zfs unmount $TESTPOOL/$TESTFS2 69 log_must_busy zfs unload-key $TESTPOOL/$TESTFS2 81 log_must key_available $TESTPOOL/$TESTFS2 85 log_must zfs mount $TESTPOOL/$TESTFS2
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/ |
| H A D | zfs_snapshot_009_pos.ksh | 43 datasets="$TESTPOOL/$TESTFS1 $TESTPOOL/$TESTFS2 50 invalid_args=("$TESTPOOL/$TESTFS1@now $TESTPOOL/$TESTFS2@now \ 52 $TESTPOOL/$TESTFS2@blah? $TESTPOOL/$TESTFS3@blah%" \ 53 "$TESTPOOL/$TESTFS1@x$SNAPSHOT_XXX $TESTPOOL/$TESTFS2@300 \ 56 valid_args=("$TESTPOOL/$TESTFS1@snap $TESTPOOL/$TESTFS2@snap \ 58 $TESTPOOL/$TESTFS2@2 $TESTPOOL/$TESTFS3@s") 109 log_mustnot zfs snapshot -r $TESTPOOL/$TESTFS1@snap1 $TESTPOOL/$TESTFS2@snap1 \ 113 log_must zfs snapshot -r $TESTPOOL/$TESTFS1@snap1 $TESTPOOL/$TESTFS2@snap1 \
|