/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_status/ |
H A D | zpool_status_007_pos.ksh | 52 destroy_pool $TESTPOOL2 59 typeset file="/$TESTPOOL2/$TESTFS1/$TESTFILE0" 62 log_must zpool create -f $TESTPOOL2 $TESTDIR/vdev_a 63 log_must zfs create -o primarycache=none $TESTPOOL2/$TESTFS1 67 lastfs="$(zfs list -r $TESTPOOL2 | tail -1 | awk '{print $1}')" 70 log_must zfs clone $lastfs@snap$i $TESTPOOL2/clone$i 71 lastfs="$(zfs list -r $TESTPOOL2/clone$i | tail -1 | awk '{print $1}')" 74 log_must zpool scrub -w $TESTPOOL2 75 log_must rm $file /$TESTPOOL2/clone2/$TESTFILE0 76 log_must zfs snap $TESTPOOL2/clone2@snapxx [all …]
|
H A D | zpool_status_008_pos.ksh | 40 poolexists $TESTPOOL2 && destroy_pool $TESTPOOL2 56 log_must zpool create -f $TESTPOOL2 $raid_type $all_vdevs 59 log_must check_vdev_state $TESTPOOL2 $TESTDIR/vdev4 "ONLINE" 60 log_must zinject -d $TESTDIR/vdev4 -A degrade $TESTPOOL2 61 log_must eval "zpool status -e $TESTPOOL2 | grep $TESTDIR/vdev4 | grep DEGRADED" 64 log_must check_vdev_state $TESTPOOL2 $TESTDIR/vdev5 "ONLINE" 65 log_must zinject -d $TESTDIR/vdev5 -A fault $TESTPOOL2 66 log_must eval "zpool status -e $TESTPOOL2 | grep $TESTDIR/vdev5 | grep FAULTED" 69 log_mustnot eval "zpool status -e $TESTPOOL2 | grep ONLINE" 73 log_must check_vdev_state $TESTPOOL2 $TESTDIR/vdev6 "ONLINE" [all …]
|
H A D | zpool_status_006_pos.ksh | 50 destroy_pool $TESTPOOL2 57 typeset file="/$TESTPOOL2/$TESTFILE0" 60 log_must zpool create -f -o feature@head_errlog=enabled $TESTPOOL2 $TESTDIR/vdev_a 65 lastfs="$(zfs list -r $TESTPOOL2 | tail -1 | awk '{print $1}')" 67 log_must zfs clone $lastfs@snap$i $TESTPOOL2/clone$i 71 log_must rm $file /$TESTPOOL2/clone2/$TESTFILE0 72 log_must zfs snap $TESTPOOL2/clone2@snapxx 73 log_must zfs clone $TESTPOOL2/clone2@snapxx $TESTPOOL2/clonexx 74 log_must zpool status -v $TESTPOOL2 76 log_must eval "zpool status -v $TESTPOOL2 | \ [all …]
|
H A D | zpool_status_005_pos.ksh | 50 destroy_pool $TESTPOOL2 58 typeset file="/$TESTPOOL2/$TESTFS1/$TESTFILE0" 61 log_must zpool create -f -o feature@head_errlog=enabled $TESTPOOL2 $TESTDIR/vdev_a 63 log_must eval "echo $passphrase > /$TESTPOOL2/pwd" 66 -o keylocation=file:///$TESTPOOL2/pwd -o primarycache=none \ 67 $TESTPOOL2/$TESTFS1 73 log_must zfs umount $TESTPOOL2/$TESTFS1 75 log_must zpool sync $TESTPOOL2 76 log_must zpool scrub $TESTPOOL2 77 log_must zpool wait -t scrub $TESTPOOL2 [all …]
|
H A D | zpool_status_004_pos.ksh | 44 datasetexists $TESTPOOL2 && log_must zpool destroy $TESTPOOL2 54 log_must zpool create -f -o feature@head_errlog=disabled $TESTPOOL2 $TESTDIR/vdev_a 56 state=$(zpool list -Ho feature@head_errlog $TESTPOOL2) 61 log_must fio --rw=write --name=job --size=10M --filename=/$TESTPOOL2/10m_file 62 log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file 65 dd if=/$TESTPOOL2/10m_file bs=1M || true 67 log_must zfs snapshot $TESTPOOL2@snap 68 log_must zfs clone $TESTPOOL2@snap $TESTPOOL2/clone 71 log_mustnot eval "zpool status -v | grep '$TESTPOOL2@snap:/10m_file'" 72 log_mustnot eval "zpool status -v | grep '$TESTPOOL2/clone/10m_file'" [all …]
|
H A D | zpool_status_003_pos.ksh | 45 datasetexists $TESTPOOL2 && log_must zpool destroy $TESTPOOL2 55 log_must zpool create -f $TESTPOOL2 $TESTDIR/vdev_a 57 log_must fio --rw=write --name=job --size=10M --filename=/$TESTPOOL2/10m_file 58 log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file 61 dd if=/$TESTPOOL2/10m_file bs=1M || true 63 log_must zfs snapshot $TESTPOOL2@snap 64 log_must zfs clone $TESTPOOL2@snap $TESTPOOL2/clone 65 log_must zfs create $TESTPOOL2/$TESTFS1 68 log_must zpool status -v $TESTPOOL2 69 log_must eval "zpool status -v | grep '$TESTPOOL2@snap:/10m_file'" [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_scrub/ |
H A D | zpool_error_scrub_003_pos.ksh | 48 rm -f /$TESTPOOL2/$TESTFILE0 49 destroy_pool $TESTPOOL2 57 log_must zpool create -f -O primarycache=none $TESTPOOL2 $TESTDIR/vdev_a 58 log_must zfs create $TESTPOOL2/$TESTFS1 59 typeset file=/$TESTPOOL2/$TESTFS1/$TESTFILE0 62 lastfs="$(zfs list -r $TESTPOOL2 | tail -1 | awk '{print $1}')" 65 log_must zfs clone $lastfs@snap$i $TESTPOOL2/clone$i 66 lastfs="$(zfs list -r $TESTPOOL2/clone$i | tail -1 | awk '{print $1}')" 73 log_must sync_pool $TESTPOOL2 76 log_must zpool status -v $TESTPOOL2 [all …]
|
H A D | zpool_scrub_offline_device.ksh | 52 poolexists $TESTPOOL2 && destroy_pool $TESTPOOL2 106 poolexists $TESTPOOL2 && destroy_pool $TESTPOOL2 107 log_must zpool create -O mountpoint=$TESTDIR $TESTPOOL2 \ 111 zpool_do_sync 'offline' $TESTPOOL2 $DISK1 117 zpool_scrub_sync $TESTPOOL2 120 zpool_do_sync 'online' $TESTPOOL2 $DISK1 121 zpool_do_sync 'offline' $TESTPOOL2 $DISK2 122 log_must wait_for_resilver_end $TESTPOOL2 $RESILVER_TIMEOUT 125 zpool_scrub_sync $TESTPOOL2 128 cksum=$(zpool status $TESTPOOL2 | awk 'L{print $NF;L=0} /CKSUM$/{L=1}') [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/ |
H A D | zfs_destroy_dev_removal_condense.ksh | 39 poolexists $TESTPOOL2 && zpool destroy $TESTPOOL2 56 log_must zpool create -O compression=off $TESTPOOL2 $VIRTUAL_DISK1 57 log_must poolexists $TESTPOOL2 59 log_must zfs create $TESTPOOL2/$TESTFS 60 log_must mkfile 100m /$TESTPOOL2/$TESTFS/atestfile 61 log_must zfs snapshot $TESTPOOL2/$TESTFS@snap 63 log_must zfs clone $TESTPOOL2/$TESTFS@snap $TESTPOOL2/$TESTCLONE 66 log_must mkfile 10m /$TESTPOOL2/$TESTCLONE/A 67 log_must mkfile 1m /$TESTPOOL2/$TESTCLONE/B 68 sync_pool $TESTPOOL2 [all …]
|
H A D | zfs_destroy_dev_removal.ksh | 33 poolexists $TESTPOOL2 && zpool destroy $TESTPOOL2 45 log_must zpool create $TESTPOOL2 $VIRTUAL_DISK1 46 log_must poolexists $TESTPOOL2 48 log_must zfs create $TESTPOOL2/$TESTFS 49 log_must mkfile 25m /$TESTPOOL2/$TESTFS/atestfile 50 log_must zfs snapshot $TESTPOOL2/$TESTFS@snap 52 log_must zfs clone $TESTPOOL2/$TESTFS@snap $TESTPOOL2/$TESTCLONE 54 log_must mkfile 1m /$TESTPOOL2/$TESTCLONE/$TESTFILE0 55 log_must mkfile 1m /$TESTPOOL2/$TESTCLONE/$TESTFILE1 56 log_must mkfile 1m /$TESTPOOL2/$TESTCLONE/$TESTFILE2 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/poolversion/ |
H A D | poolversion_002_pos.ksh | 49 log_must zpool set version=6 $TESTPOOL2 53 VERSION=$(get_pool_prop version $TESTPOOL2) 56 log_fail "Version $VERSION set for $TESTPOOL2 expected version 6!" 58 log_must zpool set bootfs=$TESTPOOL2 $TESTPOOL2 61 log_mustnot zpool set version=5 $TESTPOOL2 62 log_mustnot zpool set version=-1 $TESTPOOL2 65 VERSION=$(get_pool_prop version $TESTPOOL2) 68 log_fail "Version $VERSION set for $TESTPOOL2, expected version 6!"
|
/freebsd/tests/sys/cddl/zfs/tests/poolversion/ |
H A D | poolversion_002_pos.ksh | 58 log_must $ZPOOL set version=6 $TESTPOOL2 62 VERSION=$($ZPOOL get version $TESTPOOL2| $GREP version | $AWK '{print $3}') 65 log_fail "Version $VERSION set for $TESTPOOL2 expected version 6!" 67 log_must $ZPOOL set bootfs=$TESTPOOL2 $TESTPOOL2 70 log_mustnot $ZPOOL set version=5 $TESTPOOL2 71 log_mustnot $ZPOOL set version=-1 $TESTPOOL2 74 VERSION=$($ZPOOL get version $TESTPOOL2 | $GREP version | $AWK '{print $3}') 77 log_fail "Version $VERSION set for $TESTPOOL2, expected version 6!"
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/ |
H A D | zfs_mount_test_race.ksh | 47 TESTPOOL2=zfs_mount_test_race_tp2 49 export __ZFS_POOL_RESTRICT="$TESTPOOL1 $TESTPOOL2" 56 zpool destroy $TESTPOOL2 59 rm -rf /$TESTPOOL2 62 export __ZFS_POOL_RESTRICT="$TESTPOOL1 $TESTPOOL2" 74 log_must zpool create -f $TESTPOOL2 $DISK2 77 log_must zfs create $TESTPOOL2/$TESTFS2 85 log_must zfs set canmount=off $TESTPOOL2 86 log_must zfs set mountpoint=$MNTPT $TESTPOOL2 105 log_must ismounted $TESTPOOL2/$TESTFS2 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cachefile/ |
H A D | cachefile_004_pos.ksh | 56 poolexists $TESTPOOL2 && destroy_pool $TESTPOOL2 94 log_must zpool create -o cachefile=$CPATH1 $TESTPOOL2 $vdev1 95 log_must pool_in_cache $TESTPOOL2 $CPATH1 99 log_must zpool set cachefile=$CPATH2 $TESTPOOL2 100 log_must pool_in_cache $TESTPOOL2 $CPATH2 106 log_must zpool export $TESTPOOL2 114 log_must zpool import -d $mntpnt $TESTPOOL2 115 log_must zpool set cachefile=$CPATH2 $TESTPOOL2 116 log_must pool_in_cache $TESTPOOL2 $CPATH2 119 log_must zpool destroy $TESTPOOL2
|
/freebsd/tests/sys/cddl/zfs/tests/cachefile/ |
H A D | cachefile_004_pos.ksh | 64 destroy_pool $TESTPOOL2 100 log_must $ZPOOL create -o cachefile=$CPATH1 $TESTPOOL2 $vdev1 101 log_must pool_in_cache $TESTPOOL2 $CPATH1 105 log_must $ZPOOL set cachefile=$CPATH2 $TESTPOOL2 106 log_must pool_in_cache $TESTPOOL2 $CPATH2 112 log_must $ZPOOL export $TESTPOOL2 120 log_must $ZPOOL import -d $mntpnt $TESTPOOL2 121 log_must $ZPOOL set cachefile=$CPATH2 $TESTPOOL2 122 log_must pool_in_cache $TESTPOOL2 $CPATH2 125 log_must $ZPOOL destroy $TESTPOOL2
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_split/ |
H A D | zpool_split_props.ksh | 36 destroy_pool $TESTPOOL2 57 typeset bad_props=("bootfs=$TESTPOOL2/bootfs" 'version=28' 'ashift=4' 76 log_must zpool split -o $prop $TESTPOOL $TESTPOOL2 77 log_must zpool import -N -d $TEST_BASE_DIR $TESTPOOL2 78 log_must test "$(get_pool_prop $propname $TESTPOOL2)" = "$propval" 81 destroy_pool $TESTPOOL2 90 log_mustnot zpool split -o $prop $TESTPOOL $TESTPOOL2 91 log_mustnot zpool import -N -d $TEST_BASE_DIR $TESTPOOL2
|
H A D | zpool_split_wholedisk.ksh | 45 destroy_pool $TESTPOOL2 64 ALTROOT="$TEST_BASE_DIR/altroot-$TESTPOOL2" 70 log_must zpool split -R "$ALTROOT" $TESTPOOL $TESTPOOL2 $DISK_DEVICE 72 log_must check_vdev_state $TESTPOOL2 $DISK_DEVICE "ONLINE" 76 destroy_pool $TESTPOOL2 80 log_must zpool split -R "$ALTROOT" $TESTPOOL $TESTPOOL2 $FILE_DEVICE 82 log_must check_vdev_state $TESTPOOL2 $FILE_DEVICE "ONLINE"
|
H A D | zpool_split_devices.ksh | 35 destroy_pool $TESTPOOL2 50 typeset altroot="$TESTDIR/altroot-$TESTPOOL2" 90 log_mustnot zpool split $TESTPOOL $TESTPOOL2 ${baddevs[$i]} 91 log_must zpool split -R $altroot $TESTPOOL $TESTPOOL2 ${gooddevs[$i]} 93 log_must poolexists $TESTPOOL2 95 log_must check_vdev_state $TESTPOOL2 $filedev "ONLINE"
|
H A D | zpool_split_indirect.ksh | 43 if poolexists $TESTPOOL2 ; then 44 destroy_pool $TESTPOOL2 55 typeset altroot="$TESTDIR/altroot-$TESTPOOL2" 65 log_must zpool split -R $altroot $TESTPOOL $TESTPOOL2 66 log_must poolexists $TESTPOOL2 67 log_must test "$(get_pool_prop 'altroot' $TESTPOOL2)" = "$altroot"
|
H A D | zpool_split_vdevs.ksh | 35 destroy_pool $TESTPOOL2 119 typeset altroot="$TESTDIR/altroot-$TESTPOOL2" 130 log_must zpool split -R $altroot $TESTPOOL $TESTPOOL2 131 log_must poolexists $TESTPOOL2 132 log_must test "$(get_pool_prop 'altroot' $TESTPOOL2)" == "$altroot" 145 log_mustnot zpool split -R $altroot $TESTPOOL $TESTPOOL2 146 log_mustnot poolexists $TESTPOOL2
|
H A D | zpool_split_encryption.ksh | 34 destroy_pool $TESTPOOL2 54 "$TESTPOOL $TESTPOOL2" 55 log_must test "$(get_prop 'encryption' $TESTPOOL2)" == "aes-256-ccm" 56 log_must test "$(get_pool_prop 'altroot' $TESTPOOL2)" == "$altroot" 57 log_must mounted $altroot/$TESTPOOL2
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pool_checkpoint/ |
H A D | checkpoint_sm_scale.ksh | 61 TESTPOOL2=testpool2 69 poolexists $TESTPOOL2 && destroy_pool $TESTPOOL2 86 log_must zpool create -d $TESTPOOL2 $DISK65PB 87 log_must zpool set feature@zpool_checkpoint=enabled $TESTPOOL2 88 log_mustnot zpool checkpoint $TESTPOOL2 89 destroy_pool $TESTPOOL2
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/largest_pool/ |
H A D | largest_pool_001_pos.ksh | 99 datasetexists $TESTPOOL2/$TESTVOL && \ 100 destroy_dataset $TESTPOOL2/$TESTVOL 102 destroy_pool $TESTPOOL2 122 log_must create_pool $TESTPOOL2 "$DISKS" 125 if ! str=$(zfs create -sV $volsize $TESTPOOL2/$TESTVOL 2>&1); then 134 log_fail "zfs create -sV $volsize $TESTPOOL2/$TESTVOL" 154 log_must_busy zfs destroy $TESTPOOL2/$TESTVOL 155 destroy_pool $TESTPOOL2
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/procfs/ |
H A D | pool_state.ksh | 48 if [ -n "$TESTPOOL2" ] ; then 64 if poolexists $TESTPOOL2 ; then 67 log_must zpool clear $TESTPOOL2 73 destroy_pool $TESTPOOL2 116 TESTPOOL2=testpool2 129 log_must zpool create $TESTPOOL2 $REALDISK 143 zpool scrub $TESTPOOL2 & 150 log_must check_all $TESTPOOL2 "SUSPENDED"
|
/freebsd/tests/sys/cddl/zfs/tests/largest_pool/ |
H A D | largest_pool_001_pos.ksh | 102 datasetexists $TESTPOOL2/$TESTVOL && \ 103 log_must $ZFS destroy $TESTPOOL2/$TESTVOL 105 destroy_pool $TESTPOOL2 126 create_pool $TESTPOOL2 "$DISKS" 129 str=$($ZFS create -sV $volsize $TESTPOOL2/$TESTVOL 2>&1) 140 log_fail "$ZFS create -sV $volsize $TESTPOOL2/$TESTVOL" 159 log_must $ZFS destroy $TESTPOOL2/$TESTVOL 160 destroy_pool $TESTPOOL2
|