/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send_partial_dataset.ksh | 42 destroy_dataset $POOL/testfs2 "-r" 43 destroy_dataset $POOL/stream "-r" 44 destroy_dataset $POOL/recvfs "-r" 45 destroy_dataset $POOL/partialfs "-r" 49 log_must zfs create -o compression=off $POOL/testfs2 50 log_must zfs create $POOL/stream 51 mntpnt=$(get_prop mountpoint $POOL/testfs2) 55 log_must zfs snap $POOL/testfs2@a 57 log_must zfs snap $POOL/testfs2@b 58 log_must eval "zfs send $POOL/testfs2@a | zfs recv $POOL/recvfs" [all …]
|
H A D | send_encrypted_hierarchy.ksh | 41 log_must cleanup_pool $POOL 43 log_must setup_test_model $POOL 50 log_must cleanup_pool $POOL 52 "-o keyformat=passphrase $POOL/$FS" 53 log_must zfs snapshot $POOL/$FS@snap 54 log_must zfs clone $POOL/$FS@snap $POOL/clone 55 log_must zfs create $POOL/$FS/child 58 log_must zfs snapshot -r $POOL@before 59 log_must eval "zfs send -wR $POOL@before > $BACKDIR/fs-before-R" 61 dstds=$(get_dst_ds $POOL/$FS $POOL2) [all …]
|
H A D | send_raw_spill_block.ksh | 44 destroy_dataset $POOL/fs "-rR" 45 destroy_dataset $POOL/newfs "-rR" 54 "$POOL/fs" 55 log_must zfs set xattr=sa $POOL/fs 56 log_must zfs set dnodesize=legacy $POOL/fs 57 log_must zfs set recordsize=128k $POOL/fs 62 file="/$POOL/fs/file$i" 71 log_must zfs snapshot $POOL/fs@snap1 72 log_must eval "zfs send -w $POOL/fs@snap1 >$BACKDIR/fs@snap1" 73 log_must eval "zfs recv $POOL/newfs < $BACKDIR/fs@snap1" [all …]
|
H A D | send_realloc_dnode_size.ksh | 52 datasetexists $POOL/fs && destroy_dataset $POOL/fs -rR 53 datasetexists $POOL/newfs && destroy_dataset $POOL/newfs -rR 59 log_must zfs create -o dnodesize=1k $POOL/fs 60 log_must mk_files 200 262144 0 $POOL/fs 61 log_must zfs snapshot $POOL/fs@a 66 rm /$POOL/fs/* 68 log_must zfs unmount $POOL/fs 69 log_must zfs set dnodesize=legacy $POOL/fs 70 log_must zfs mount $POOL/fs 72 log_must mk_files 200 262144 0 $POOL/fs [all …]
|
H A D | send_spill_block.ksh | 42 destroy_dataset $POOL/fs "-rR" 43 destroy_dataset $POOL/newfs "-rR" 50 log_must zfs create $POOL/fs 51 log_must zfs set xattr=sa $POOL/fs 52 log_must zfs set dnodesize=legacy $POOL/fs 53 log_must zfs set recordsize=128k $POOL/fs 58 file="/$POOL/fs/file$i" 67 log_must zfs snapshot $POOL/fs@snap1 68 log_must eval "zfs send -e $POOL/fs@snap1 >$BACKDIR/fs@snap1" 69 log_must eval "zfs recv $POOL/newfs < $BACKDIR/fs@snap1" [all …]
|
H A D | send_realloc_encrypted_files.ksh | 48 destroy_dataset $POOL/fs "-rR" 49 destroy_dataset $POOL/newfs "-rR" 59 -o keylocation=file://$keyfile $POOL/fs 62 log_must zfs snapshot $POOL/fs@snap${last_snap} 63 log_must eval "zfs send -wp $POOL/fs@snap${last_snap} \ 65 log_must eval "zfs recv $POOL/newfs < $BACKDIR/fs@snap${last_snap}" 68 log_must zfs set atime=off $POOL/newfs 83 rand_set_prop $POOL/fs checksum "off" "fletcher4" "sha256" 84 rand_set_prop $POOL/fs compression "${compress_prop_vals[@]}" 85 rand_set_prop $POOL/fs recordsize "32K" "128K" [all …]
|
H A D | send_realloc_files.ksh | 46 destroy_dataset $POOL/fs "-rR" 47 destroy_dataset $POOL/newfs "-rR" 52 log_must zfs create $POOL/fs 55 log_must zfs snapshot $POOL/fs@snap${last_snap} 56 log_must eval "zfs send $POOL/fs@snap${last_snap} >$BACKDIR/fs@snap${last_snap}" 57 log_must eval "zfs recv $POOL/newfs < $BACKDIR/fs@snap${last_snap}" 60 log_must zfs set atime=off $POOL/newfs 75 rand_set_prop $POOL/fs checksum "off" "fletcher4" "sha256" 76 rand_set_prop $POOL/fs compression "${compress_prop_vals[@]}" 77 rand_set_prop $POOL/fs recordsize "32K" "128K" [all …]
|
H A D | rsend_011_pos.ksh | 48 log_must cleanup_pool $POOL 51 log_must setup_test_model $POOL 61 value=$(get_prop $prop $POOL/$FS) 62 log_must zfs set $prop=$value $POOL/$FS 68 for ds in "$POOL/$FS/fs1" "$POOL/$FS/fs1/fs2" "$POOL/$FS/fs1/fclone"; do 75 log_must zfs inherit $prop $POOL/$FS/vol 83 log_must eval "zfs send -R $POOL@final > $BACKDIR/pool-R" 84 log_must zfs unmount -f $POOL/$FS 87 dstds=$(get_dst_ds $POOL $POOL2) 91 set -A pair "$POOL" "$dstds" \ [all …]
|
H A D | rsend_012_pos.ksh | 73 log_must cleanup_pool $POOL 76 log_must edited_prop "set" $POOL 81 log_must zfs inherit $prop $POOL 85 log_must setup_test_model $POOL 96 log_must edited_prop "get" $POOL 99 for fs in "$POOL" "$POOL/pclone" "$POOL/$FS" "$POOL/$FS/fs1" \ 100 "$POOL/$FS/fs1/fs2" "$POOL/$FS/fs1/fclone" ; do 121 for vol in "$POOL/vol" "$POOL/$FS/vol" ; do 131 rand_set_prop $POOL redundant_metadata "all" "most" 132 rand_set_prop $POOL sync "standard" "always" "disabled" [all …]
|
H A D | rsend_006_pos.ksh | 49 set -A snaps "$POOL@init" "$POOL@snap0" \ 50 "$POOL@snapA" "$POOL@snap1" \ 51 "$POOL@snapC" "$POOL@snap2" \ 52 "$POOL@final" "$POOL@init" 56 log_must cleanup_pool $POOL 59 log_must setup_test_model $POOL 75 log_must eval "zfs send -R $POOL@init > $BACKDIR/pool-final-R" 78 dstds=$(get_dst_ds $POOL $POOL2) 79 log_must cmp_ds_subs $POOL $dstds 80 log_must cmp_ds_cont $POOL $dstds
|
H A D | rsend_008_pos.ksh | 51 set -A dtst "$POOL" "$POOL/pclone" \ 52 "$POOL/$FS/fs1/fs2" "$POOL/$FS/fs1/fclone" 55 dtst[((n))]="$POOL/$FS/vol"; dtst[((n+1))]="$POOL/$FS/vclone" 92 log_must eval "zfs send -R $POOL@final > $BACKDIR/pool-final-R" 95 dstds=$(get_dst_ds $POOL $POOL2) 99 set -A pair "$POOL" "$dstds" \ 100 "$POOL/$FS" "$dstds/$FS" \ 101 "$POOL/$FS/fs1" "$dstds/$FS/fs1" \ 102 "$POOL/$FS/fs1/fs2" "$dstds/$FS/fs1/fs2" \ 103 "$POOL/pclone" "$dstds/pclone" \ [all …]
|
H A D | rsend_014_pos.ksh | 36 log_must zpool export $POOL 37 log_must zpool import -o readonly=on $POOL 38 log_must eval "zfs send -R $POOL@final > $BACKDIR/pool-final-R" 41 dstds=$(get_dst_ds $POOL $POOL2) 42 log_must cmp_ds_subs $POOL $dstds 43 log_must cmp_ds_cont $POOL $dstds 47 log_must eval "zfs send -R $POOL/$FS@final > $BACKDIR/fs-final-R" 49 log_must_busy zpool export $POOL 50 log_must zpool import $POOL 52 dstds=$(get_dst_ds $POOL/$FS $POOL2) [all …]
|
H A D | rsend_007_pos.ksh | 47 "$POOL/pclone" "$POOL/$FS/pclone" \ 48 "$POOL/$FS/fs1/fs2" "$POOL/fs2" 51 dtst[((n))]="$POOL/vol"; dtst[((n+1))]="$POOL/$FS/fs1/vol" 56 log_must cleanup_pool $POOL 59 log_must setup_test_model $POOL 75 log_must eval "zfs send -R $POOL@final > $BACKDIR/pool-final-R" 77 dstds=$(get_dst_ds $POOL $POOL2) 78 log_must cmp_ds_subs $POOL $dstds 95 log_must cmp_ds_subs $POOL $dstds
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/ |
H A D | redacted_incrementals.ksh | 33 typeset sendfs="$POOL/$ds_name" 35 typeset clone="$POOL/${ds_name}_clone" 36 typeset tmpdir="$(get_prop mountpoint $POOL)/tmp" 46 log_must zfs redact $sendfs@snap0 book1 $POOL/rm@snap $POOL/stride3@snap \ 47 $POOL/stride5@snap 52 log_must eval "zfs send -i $sendfs@snap0 $POOL/stride3@snap >$stream" 54 log_must directory_diff /$POOL/stride3 /$POOL2/rstride3 55 log_must eval "zfs send -i $sendfs@snap0 $POOL/stride5@snap >$stream" 57 log_must directory_diff /$POOL/stride5 /$POOL2/rstride5 60 log_must eval "zfs send -i $sendfs@snap0 $POOL/hole@snap >$stream" [all …]
|
H A D | redacted_mixed_recsize.ksh | 33 typeset tmpdir="$(get_prop mountpoint $POOL)/tmp" 37 log_onexit redacted_cleanup $POOL/512 $POOL/1m $POOL2/512 $POOL2/1m 40 log_must zfs create -o recsize=512 $POOL/512 41 mntpnt=$(get_prop mountpoint $POOL/512) 43 log_must zfs snapshot $POOL/512@snap 44 log_must zfs clone -o recsize=1m $POOL/512@snap $POOL/1mclone 45 mntpnt=$(get_prop mountpoint $POOL/1mclone) 47 log_must zfs snapshot $POOL/1mclone@snap 49 log_must zfs create -o recsize=1m $POOL/1m 50 mntpnt=$(get_prop mountpoint $POOL/1m) [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/rsend/ |
H A D | rsend_011_pos.ksh | 58 log_must cleanup_pool $POOL 61 log_must setup_test_model $POOL 71 value=$(get_prop $prop $POOL/$FS) 72 log_must $ZFS set $prop=$value $POOL/$FS 78 for ds in "$POOL/$FS/fs1" "$POOL/$FS/fs1/fs2" "$POOL/$FS/fs1/fclone" ; do 88 $ZFS inherit $prop $POOL/$FS/vol 90 log_fail "$ZFS inherit $prop $POOL/$FS/vol" 99 log_must eval "$ZFS send -R $POOL@final > $BACKDIR/pool-R" 100 log_must $ZFS unmount -f $POOL/$FS 103 dstds=$(get_dst_ds $POOL $POOL2) [all …]
|
H A D | rsend_012_pos.ksh | 106 log_must cleanup_pool $POOL 109 log_must edited_prop "set" $POOL 114 log_must $ZFS inherit $prop $POOL 121 log_must setup_test_model $POOL 132 log_must edited_prop "get" $POOL 135 for fs in "$POOL" "$POOL/pclone" "$POOL/$FS" "$POOL/$FS/fs1" \ 136 "$POOL/$FS/fs1/fs2" "$POOL/$FS/fs1/fclone" ; do 156 for vol in "$POOL/vol" "$POOL/$FS/vol" ; do 168 rand_set_prop $POOL sharenfs "on" "off" "rw" 173 log_must eval "$ZFS send -R $POOL@final > $BACKDIR/pool-final-R" [all …]
|
H A D | rsend_006_pos.ksh | 58 set -A snaps "$POOL@init" "$POOL@snap0" \ 59 "$POOL@snapA" "$POOL@snap1" \ 60 "$POOL@snapC" "$POOL@snap2" \ 61 "$POOL@final" "$POOL@init" 65 log_must cleanup_pool $POOL 68 log_must setup_test_model $POOL 84 log_must eval "$ZFS send -R $POOL@init > $BACKDIR/pool-final-R" 87 dstds=$(get_dst_ds $POOL $POOL2) 88 log_must cmp_ds_subs $POOL $dstds 89 log_must cmp_ds_cont $POOL $dstds
|
H A D | rsend_008_pos.ksh | 57 set -A dtst "$POOL" "$POOL/pclone" \ 58 "$POOL/$FS/fs1/fs2" "$POOL/$FS/fs1/fclone" 61 dtst[((n))]="$POOL/$FS/vol"; dtst[((n+1))]="$POOL/$FS/vclone" 98 log_must eval "$ZFS send -R $POOL@final > $BACKDIR/pool-final-R" 101 dstds=$(get_dst_ds $POOL $POOL2) 105 set -A pair "$POOL" "$dstds" \ 106 "$POOL/$FS" "$dstds/$FS" \ 107 "$POOL/$FS/fs1" "$dstds/$FS/fs1" \ 108 "$POOL/$FS/fs1/fs2" "$dstds/$FS/fs1/fs2" \ 109 "$POOL/pclone" "$dstds/pclone" \ [all …]
|
H A D | rsend_007_pos.ksh | 56 "$POOL/pclone" "$POOL/$FS/pclone" \ 57 "$POOL/$FS/fs1/fs2" "$POOL/fs2" 60 dtst[((n))]="$POOL/vol"; dtst[((n+1))]="$POOL/$FS/fs1/vol" 65 log_must cleanup_pool $POOL 68 log_must setup_test_model $POOL 84 log_must eval "$ZFS send -R $POOL@final > $BACKDIR/pool-final-R" 86 dstds=$(get_dst_ds $POOL $POOL2) 87 log_must cmp_ds_subs $POOL $dstds 88 log_must cmp_ds_cont $POOL $dstds 105 log_must cmp_ds_subs $POOL $dstds [all …]
|
H A D | rsend_013_pos.ksh | 62 cleanup_pool $POOL 63 log_must setup_test_model $POOL 75 log_must eval "$ZFS send -R $POOL@final > $BACKDIR/pool-final-R" 78 log_must $ZFS destroy -Rf $POOL/$FS 79 log_must $ZFS destroy -Rf $POOL/pclone 82 log_must $ZFS destroy -Rf $POOL/vol 84 log_must $ZFS snapshot -r $POOL@destroy 86 log_must eval "$ZFS send -R -I @final $POOL@destroy > " \ 90 dstds=$(get_dst_ds $POOL $POOL2) 91 log_must cmp_ds_subs $POOL $dstds [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/bootfs/ |
H A D | bootfs_006_pos.ksh | 67 POOL=$1 68 log_must $ZFS create $POOL/$FS 70 enc=$(get_prop encryption $POOL/$FS) 76 log_must $ZPOOL set bootfs=$POOL/$FS $POOL 77 VAL=$($ZPOOL get bootfs $POOL | $TAIL -1 | $AWK '{print $3}' ) 78 if [ $VAL != "$POOL/$FS" ] 80 log_must $ZPOOL status -v $POOL 81 log_fail "set/get failed on $POOL - expected $VAL == $POOL/$FS" 83 log_must $ZPOOL destroy $POOL 87 POOL=$1 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/ |
H A D | dedup_quota.ksh | 50 POOL="dedup_pool" 62 if poolexists $POOL ; then 63 destroy_pool $POOL 73 log_must destroy_pool $POOL 81 log_must zpool create -o ashift=12 -f -O xattr=sa -m $MOUNTDIR $POOL $VDEV_GENERAL 82 log_must zfs set dedup=on $POOL 88 get_pool_prop dedup_table_size $POOL 93 get_pool_prop dedup_table_quota $POOL 98 typeset -i entries=$(zpool status -D $POOL | \ 117 log_must sync_pool $POOL [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bootfs/ |
H A D | bootfs_006_pos.ksh | 53 POOL=$1 54 log_must zfs create $POOL/$TESTFS 56 log_must zpool set bootfs=$POOL/$TESTFS $POOL 57 VAL=$(zpool get bootfs $POOL | awk 'END {print $3}' ) 58 if [ $VAL != "$POOL/$TESTFS" ] 60 log_must zpool status -v $POOL 62 "set/get failed on $POOL - expected $VAL == $POOL/$TESTFS" 64 log_must zpool destroy $POOL 68 POOL=$1 69 log_must zfs create $POOL/$TESTFS [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
H A D | zed_io_config.ksh | 44 POOL="io_pool" 51 if poolexists $POOL ; then 52 destroy_pool $POOL 66 log_must zpool create -f -m $MOUNTDIR $POOL mirror $VDEV $VDEV1 69 log_must zfs set compression=off $POOL 70 log_must zfs set primarycache=none $POOL 71 log_must zfs set recordsize=512 $POOL 77 log_must zpool destroy $POOL 89 log_must zinject -a -d $VDEV -e io -T read -f 100 $POOL 98 log_must wait_vdev_state $POOL $VDEV "FAULTED" 60 [all …]
|