Home
last modified time | relevance | path

Searched refs:TESTPOOL (Results 176 – 200 of 883) sorted by relevance

12345678910>>...36

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_001_pos.ksh51 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
52 "$TESTPOOL/$TESTCTR/$TESTFS1" "$TESTPOOL/$TESTCTR1" \
53 "$TESTPOOL/$TESTVOL" "$TESTPOOL/$TESTFS-clone"
54 set -A mountable "$TESTPOOL/$TESTFS1-new" "$TESTPOOL/$TESTFS@snapshot-new" \
55 "$TESTPOOL/$TESTCTR/$TESTFS1-new" "$TESTPOOL/$TESTFS-clone-new"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_002_pos.ksh47 volsize=$(zfs get -H -o value volsize $TESTPOOL/$TESTVOL)
51 snapexists $TESTPOOL/$TESTVOL@snap && \
52 zfs destroy $TESTPOOL/$TESTVOL@snap
58 zfs set volsize=$volsize $TESTPOOL/$TESTVOL
68 log_must zfs set volsize=128m $TESTPOOL/$TESTVOL
70 echo "y" | newfs -v /dev/zvol/rdsk/$TESTPOOL/$TESTVOL >/dev/null 2>&1
71 (( $? != 0 )) && log_fail "Unable to newfs(8) $TESTPOOL/$TESTVOL"
74 log_must mount /dev/zvol/dsk/$TESTPOOL/$TESTVOL $TESTDIR
91 log_must zfs snapshot $TESTPOOL/$TESTVOL@snap
93 fsck -n /dev/zvol/rdsk/$TESTPOOL/$TESTVOL@snap >/dev/null 2>&1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/
H A Dslog_015_neg.ksh45 poolexists $TESTPOOL && zpool destroy -f $TESTPOOL
55 log_must zpool create $TESTPOOL $VDEV log $SDEV
58 log_must fio --rw write --sync 1 --directory "/$TESTPOOL" \
63 log_must zpool offline $TESTPOOL $SDEV
64 log_must verify_slog_device $TESTPOOL $SDEV 'OFFLINE'
65 log_must zpool online $TESTPOOL $SDEV
66 log_must verify_slog_device $TESTPOOL $SDEV 'ONLINE'
71 log_must zpool destroy -f $TESTPOOL
H A Dslog_011_neg.ksh55 log_must zpool create $TESTPOOL $type $VDEV $spare $SDEV \
59 log_must zpool offline $TESTPOOL $ldev
60 log_must display_status $TESTPOOL
61 log_must verify_slog_device $TESTPOOL $ldev 'OFFLINE' 'mirror'
63 log_must zpool online $TESTPOOL $ldev
64 log_must display_status $TESTPOOL
65 log_must verify_slog_device $TESTPOOL $ldev 'ONLINE' 'mirror'
67 log_must zpool destroy -f $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_trim/
H A Dzpool_trim_verify_checksums.ksh40 if poolexists $TESTPOOL; then
41 destroy_pool $TESTPOOL
55 log_must zpool create $TESTPOOL "$LARGEFILE"
57 log_must dd if=/dev/urandom of=/$TESTPOOL/file1 bs=1048576 count=64
59 log_must zpool trim $TESTPOOL
61 [[ -z "$(trim_progress $TESTPOOL $LARGEFILE)" ]] && \
64 log_must dd if=/dev/urandom of=/$TESTPOOL/file2 bs=1048576 count=64
67 log_must zpool export $TESTPOOL
68 log_must zdb -e -p "$TESTDIR" -cc $TESTPOOL
H A Dzpool_trim_partial.ksh40 if poolexists $TESTPOOL; then
41 destroy_pool $TESTPOOL
68 log_must zpool create $TESTPOOL "$LARGEFILE"
72 log_must dd if=/dev/urandom of=/$TESTPOOL/file bs=1048576 count=$cnt
81 log_must zpool export $TESTPOOL
85 log_must zpool import -d $TESTDIR $TESTPOOL
86 log_must zpool online -e $TESTPOOL "$LARGEFILE"
95 log_must zpool trim $TESTPOOL
99 while [[ "$(trim_progress $TESTPOOL $LARGEFILE)" -lt "100" ]]; do
110 log_must zpool trim $TESTPOOL
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/upgrade/
H A Dupgrade_common.kshlib37 datasetexists $TESTPOOL/fs1 && log_must zfs destroy $TESTPOOL/fs1
38 datasetexists $TESTPOOL/fs2 && log_must zfs destroy $TESTPOOL/fs2
39 datasetexists $TESTPOOL/fs3 && log_must zfs destroy $TESTPOOL/fs3
40 datasetexists $TESTPOOL && log_must zpool destroy $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/reservation/
H A Dreservation_003_pos.sh59 log_must zero_reservation $TESTPOOL/$TESTFS
79 space_avail=`get_prop available $TESTPOOL`
88 [[ $obj == $TESTPOOL/$TESTVOL ]] && \
111 space_avail=`get_prop available $TESTPOOL`
116 OBJ_LIST="$TESTPOOL/$TESTVOL $TESTPOOL/$TESTVOL2"
124 log_must zfs create -V $vol_set_size $TESTPOOL/$TESTVOL
125 log_must zfs set reservation=none $TESTPOOL/$TESTVOL
126 log_must zfs create -s -V $sparse_vol_set_size $TESTPOOL/$TESTVOL2
129 for obj in $TESTPOOL/$TESTFS $OBJ_LIST ; do
H A Dreservation_001_pos.sh66 space_avail=`get_prop available $TESTPOOL`
71 OBJ_LIST="$TESTPOOL/$TESTVOL $TESTPOOL/$TESTVOL2"
83 log_must zfs create -V $vol_set_size $TESTPOOL/$TESTVOL
84 log_must zfs set reservation=none $TESTPOOL/$TESTVOL
85 log_must zfs set refreservation=none $TESTPOOL/$TESTVOL
86 log_must zfs create -s -V $sparse_vol_set_size $TESTPOOL/$TESTVOL2
90 for obj in $TESTPOOL/$TESTFS $OBJ_LIST; do
92 space_avail=`get_prop available $TESTPOOL`
101 [[ $obj == $TESTPOOL/$TESTVOL ]] && \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/lua_core/
H A Dtst.exists.ksh32 datasetexists $TESTPOOL/$TESTFS@$TESTSNAP && \
33 log_must zfs destroy -R $TESTPOOL/$TESTFS@$TESTSNAP
36 log_must_program $TESTPOOL $ZCP_ROOT/lua_core/tst.exists.zcp \
37 $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTFS@$TESTSNAP \
38 $TESTPOOL/$TESTCLONE
41 $TESTPOOL - <<-EOF
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dzfs_unmount_001_neg.ksh48 "umount $TESTPOOL/$TESTFS" "umount -f $TESTPOOL/$TESTFS" \
49 "unmount $TESTPOOL/$TESTFS" "unmount -f $TESTPOOL/$TESTFS" \
50 "umount $TESTPOOL/$TESTFS@$TESTSNAP" \
51 "umount -f $TESTPOOL/$TESTFS@$TESTSNAP" \
52 "unmount $TESTPOOL/$TESTFS@$TESTSNAP" \
53 "unmount -f $TESTPOOL/$TESTFS@$TESTSNAP" \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_all_fail.ksh40 typeset path=${TEST_BASE_DIR%%/}/testroot$$/$TESTPOOL
47 setup_filesystem "$DISKS" "$TESTPOOL" $i "$path/$i" ctr
50 zfs list -r $TESTPOOL
57 export __ZFS_POOL_RESTRICT="$TESTPOOL"
73 export __ZFS_POOL_RESTRICT="$TESTPOOL"
79 log_mustnot mounted "$TESTPOOL/$i"
86 export __ZFS_POOL_RESTRICT="$TESTPOOL"
91 log_mustnot mounted "$TESTPOOL/0"
93 log_must mounted "$TESTPOOL/$i"
H A Dzfs_mount_002_pos.ksh52 log_must force_unmount $TESTPOOL/$fs
62 log_note "Make sure the filesystem $TESTPOOL/$NONEXISTFSNAME " \
64 log_mustnot zfs list $TESTPOOL/$NONEXISTFSNAME
67 zfs $mountcmd $TESTPOOL/$NONEXISTFSNAME
70 log_fail "'zfs $mountcmd $TESTPOOL/$NONEXISTFSNAME' " \
73 log_note "Make sure the filesystem $TESTPOOL/$NONEXISTFSNAME is unmounted"
74 unmounted $TESTPOOL/$NONEXISTFSNAME || \
75 log_fail Filesystem $TESTPOOL/$NONEXISTFSNAME is mounted
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_scrub/
H A Dzpool_scrub_005_pos.ksh49 log_must zpool scrub $TESTPOOL
50 log_must zpool detach $TESTPOOL $DISK2
51 log_must zpool attach $TESTPOOL $DISK1 $DISK2
53 while ! is_pool_resilvered $TESTPOOL; do
57 log_must zpool scrub $TESTPOOL
58 log_must zpool detach $TESTPOOL $DISK1
59 log_must zpool attach $TESTPOOL $DISK2 $DISK1
61 while ! is_pool_resilvered $TESTPOOL; do
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_009_neg.ksh55 set -A args "blah" "-d" "-R" "-a $TESTPOOL" \
56 "$TESTPOOL ${TESTPOOL}-new ${TESTPOOL}-new" \
57 "$TESTPOOL $TESTPOOL1" \
58 "$TESTPOOL ${TESTPOOL1}*" "$TESTPOOL ${TESTPOOL1}?"
60 set -A pools "$TESTPOOL" "$TESTPOOL1"
94 log_must zpool export $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/trim/
H A Dautotrim_integrity.ksh45 if poolexists $TESTPOOL; then
46 destroy_pool $TESTPOOL
67 log_must zpool create -f $TESTPOOL $type $TRIM_VDEVS
68 log_must zpool set autotrim=on $TESTPOOL
73 dir="/$TESTPOOL/autotrim-$((RANDOM % 5))"
79 log_must du -hs /$TESTPOOL
81 verify_trim_io $TESTPOOL "ind" 10
82 verify_pool $TESTPOOL
84 log_must zpool destroy $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_get/
H A Dzfs_get_008_pos.ksh65 set -A dataset $TESTPOOL/$TESTCTR $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \
66 $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTVOL@$TESTSNAP
69 set -A bookmark $TESTPOOL/$TESTFS#$TESTBKMARK $TESTPOOL/$TESTVOL#$TESTBKMARK
75 create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
76 create_snapshot $TESTPOOL/$TESTVOL $TESTSNAP
79 create_bookmark $TESTPOOL/$TESTFS $TESTSNAP $TESTBKMARK
80 create_bookmark $TESTPOOL/$TESTVOL $TESTSNAP $TESTBKMARK
/illumos-gate/usr/src/test/zfs-tests/tests/functional/grow_replicas/
H A Dgrow_replicas_001_pos.ksh53 datasetexists $TESTPOOL && log_must destroy_pool $TESTPOOL
72 create_pool $TESTPOOL $pooltype ${DISK}s0 ${DISK}s1
76 create_pool $TESTPOOL $pooltype ${DISK0}s0 ${DISK1}s0
80 log_must zfs create $TESTPOOL/$TESTFS
81 log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
83 log_must zfs set compression=off $TESTPOOL/$TESTFS
95 log_must zpool add $TESTPOOL $pooltype ${DISK}s3 ${DISK}s4
99 log_must zpool add $TESTPOOL $pooltype ${DISK2}s0 ${DISK3}s0
105 log_must destroy_pool $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_encrypted.ksh44 datasetexists $TESTPOOL/$TESTFS1 && \
45 log_must zfs destroy -r $TESTPOOL/$TESTFS1
55 typeset snap="$TESTPOOL/$TESTFS1@snap"
58 "-o keyformat=passphrase $TESTPOOL/$TESTFS1"
61 "-o keyformat=passphrase $TESTPOOL/$TESTFS1/child"
69 log_must zfs unmount $TESTPOOL/$TESTFS1
70 log_must zfs unload-key $TESTPOOL/$TESTFS1
73 log_must eval "zfs send $TESTPOOL/$TESTFS1/child@snap > /dev/null"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/bootfs/
H A Dbootfs_002_neg.ksh55 if datasetexists $TESTPOOL/vol
57 log_must zfs destroy $TESTPOOL/vol
59 if poolexists $TESTPOOL
61 log_must zpool destroy $TESTPOOL
81 create_pool "$TESTPOOL" "$VDEV"
82 log_must zfs create -V 10m $TESTPOOL/vol
84 log_mustnot zpool set bootfs=$TESTPOOL/vol $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cache/
H A Dcache_009_pos.ksh54 log_must zpool create $TESTPOOL $type $VDEV \
58 log_must zpool offline $TESTPOOL $ldev
59 log_must display_status $TESTPOOL
60 log_must verify_cache_device $TESTPOOL $ldev 'OFFLINE' ''
62 log_must zpool online $TESTPOOL $ldev
63 log_must display_status $TESTPOOL
64 log_must verify_cache_device $TESTPOOL $ldev 'ONLINE' ''
66 log_must zpool destroy -f $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add_002_pos.ksh51 poolexists $TESTPOOL && \
52 destroy_pool $TESTPOOL
62 create_pool "$TESTPOOL" mirror "${disk}s${SLICE0}" "${disk}s${SLICE1}"
63 log_must poolexists "$TESTPOOL"
65 log_mustnot zpool add "$TESTPOOL" ${disk}s${SLICE3}
66 log_mustnot vdevs_in_pool "$TESTPOOL" "${disk}s${SLICE3}"
68 log_must zpool add -f "$TESTPOOL" ${disk}s${SLICE3}
69 log_must vdevs_in_pool "$TESTPOOL" "${disk}s${SLICE3}"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/
H A Dzpool_export_002_pos.ksh52 datasetexists "$TESTPOOL/$TESTFS" || \
53 log_must zpool import -d $dir $TESTPOOL
55 ismounted "$TESTPOOL/$TESTFS"
57 log_must zfs mount $TESTPOOL/$TESTFS
69 ismounted "$TESTPOOL/$TESTFS"
76 log_mustnot zpool export $TESTPOOL
78 poolexists $TESTPOOL || \
79 log_fail "$TESTPOOL not found in 'zpool list' output."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/
H A Dzfs_unmount_all_001_pos.ksh62 path=${TEST_BASE_DIR%%/}/testroot$$/$TESTPOOL
66 setup_filesystem "$DISKS" "$TESTPOOL" \
74 setup_filesystem "$DISKS" "$TESTPOOL" \
83 setup_filesystem "$DISKS" "$TESTPOOL" \
106 cleanup_filesystem "$TESTPOOL" \
114 cleanup_filesystem "$TESTPOOL" \
120 cleanup_filesystem "$TESTPOOL" "${ctr[i]}"
137 path=$TESTPOOL
173 export __ZFS_POOL_RESTRICT="$TESTPOOL"
178 mntpnt=$(get_prop mountpoint ${TESTPOOL}/${TESTCTR}/${TESTFS})
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/removal/
H A Dremoval_condense_export.ksh43 log_must zfs set recordsize=512 $TESTPOOL/$TESTFS
72 log_must zpool remove $TESTPOOL $REMOVEDISK
73 log_must wait_for_removal $TESTPOOL
74 log_mustnot vdevs_in_pool $TESTPOOL $REMOVEDISK
76 log_must zfs remap $TESTPOOL/$TESTFS
80 log_must zpool export $TESTPOOL
81 zdb -e $TESTPOOL | grep 'Condensing indirect vdev' || \
83 log_must zdb -e -cudi $TESTPOOL
84 log_must zpool import $TESTPOOL

12345678910>>...36