Home
last modified time | relevance | path

Searched refs:TESTPOOL (Results 151 – 175 of 883) sorted by relevance

12345678910>>...36

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_promote/
H A Dzfs_promote_006_neg.ksh53 snap=$TESTPOOL/$TESTFS@$TESTSNAP
54 clone=$TESTPOOL/$TESTCLONE
55 recvfs=$TESTPOOL/recvfs
57 "$TESTPOOL/blah" \
58 "$TESTPOOL" "$TESTPOOL/$TESTFS" "$snap" \
59 "$TESTPOOL/$TESTVOL" "$TESTPOOL $TESTPOOL/$TESTFS" \
60 "$clone $TESTPOOL/$TESTFS" "- $clone" "-? $clone" \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_trim/
H A Dzpool_trim_attach_detach_add_remove.ksh41 log_must zpool create -f $TESTPOOL $DISK1
43 log_must zpool trim -r 128M $TESTPOOL $DISK1
44 progress="$(trim_progress $TESTPOOL $DISK1)"
47 log_must zpool attach $TESTPOOL $DISK1 $DISK2
48 new_progress="$(trim_progress $TESTPOOL $DISK1)"
53 log_must zpool detach $TESTPOOL $DISK2
54 new_progress="$(trim_progress $TESTPOOL $DISK1)"
59 log_must zpool add $TESTPOOL $DISK2
60 log_must zpool remove $TESTPOOL $DISK1
61 [[ -z "$(trim_prog_line $TESTPOOL $DISK1)" ]] || \
H A Dzpool_trim_multiple.ksh38 log_must zpool create -f $TESTPOOL $DISK1
42 log_must zpool trim -r 2G $TESTPOOL
43 log_mustnot eval "trim_prog_line $TESTPOOL $DISK1 | grep complete"
45 [[ "$(trim_progress $TESTPOOL $DISK1)" -lt "100" ]] ||
48 new_action_date="$(trim_prog_line $TESTPOOL $DISK1 | \
54 while [[ "$(trim_progress $TESTPOOL $DISK1)" -lt "100" ]]; do
55 progress="$(trim_progress $TESTPOOL $DISK1)"
57 [[ "$progress" -le "$(trim_progress $TESTPOOL $DISK1)" ]] ||
61 log_must eval "trim_prog_line $TESTPOOL $DISK1 | grep complete"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_005_pos.ksh49 poolexists $TESTPOOL && log_must zpool export $TESTPOOL
50 log_must zpool import $TESTPOOL
52 datasetexists $TESTPOOL@snap && \
53 log_must zfs destroy -r $TESTPOOL@snap
59 log_must zfs snapshot -r $TESTPOOL@snap
61 log_must zpool export $TESTPOOL
62 log_must zpool import -o readonly=on $TESTPOOL
64 log_must eval "zfs send -R $TESTPOOL@snap >/dev/null"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_share/
H A Dzfs_share_001_pos.ksh50 "$TESTDIR" "$TESTPOOL/$TESTFS" \
51 "$TESTDIR1" "$TESTPOOL/$TESTCTR/$TESTFS1" \
52 "$TESTDIR2" "$TESTPOOL/$TESTFS-clone"
64 if mounted $TESTPOOL/$TESTFS-clone; then
68 datasetexists $TESTPOOL/$TESTFS-clone && \
69 log_must zfs destroy -f $TESTPOOL/$TESTFS-clone
71 if snapexists "$TESTPOOL/$TESTFS@snapshot"; then
72 log_must zfs destroy -f $TESTPOOL/$TESTFS@snapshot
113 log_must zfs snapshot $TESTPOOL/$TESTFS@snapshot
114 log_must zfs clone $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTFS-clone
[all …]
H A Dzfs_share_011_pos.ksh51 log_must zfs set sharenfs=off $TESTPOOL/$TESTFS
52 unshare_fs $TESTPOOL/$TESTFS
54 if snapexists "$TESTPOOL/$TESTFS@snapshot"; then
55 log_must zfs destroy -f $TESTPOOL/$TESTFS@snapshot
58 if datasetexists $TESTPOOL/$TESTFS/fs2 ; then
59 log_must zfs destroy -f $TESTPOOL/$TESTFS/fs2
70 log_must zfs set sharenfs=on $TESTPOOL/$TESTFS
73 log_mustnot zfs umount $TESTPOOL/$TESTFS
80 log_must zfs create $TESTPOOL/$TESTFS/fs2
82 log_mustnot zfs destroy $TESTPOOL/$TESTFS/fs2
/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapshot/
H A Drollback_003_pos.ksh56 export __ZFS_POOL_RESTRICT="$TESTPOOL"
67 for fs in "$TESTPOOL/$TESTFILE/$TESTFILE.1" "$TESTPOOL/$TESTFILE"
74 [[ -e /$TESTPOOL ]] && \
75 log_must rm -rf $TESTPOOL/*
86 log_must touch /$TESTPOOL/$TESTFILE
87 sync_pool $TESTPOOL
90 log_must zfs create $TESTPOOL/$TESTFILE
95 log_must zfs snapshot $TESTPOOL/$TESTFILE@$TESTSNAP
98 export __ZFS_POOL_RESTRICT="$TESTPOOL"
103 log_must touch /$TESTPOOL/$TESTFILE/$TESTFILE.1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_initialize/
H A Dzpool_initialize_suspend_resume.ksh44 log_must zpool create -f $TESTPOOL $DISK1
45 log_must zpool initialize $TESTPOOL
47 [[ -z "$(initialize_progress $TESTPOOL $DISK1)" ]] && \
51 log_must zpool initialize -s $TESTPOOL
52 log_must eval "initialize_prog_line $TESTPOOL $DISK1 | grep suspended"
53 progress="$(initialize_progress $TESTPOOL $DISK1)"
56 [[ "$progress" -eq "$(initialize_progress $TESTPOOL $DISK1)" ]] || \
59 log_must zpool initialize $TESTPOOL $DISK1
60 [[ "$progress" -le "$(initialize_progress $TESTPOOL $DISK1)" ]] ||
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmp/
H A Dmmp_reset_interval.ksh60 log_must zpool set multihost=on $TESTPOOL
64 uber_count=$(count_mmp_writes $TESTPOOL 1)
75 sync_pool $TESTPOOL true
76 typeset mmp_fail=$(zdb $TESTPOOL 2>/dev/null |
100 log_must zpool import $TESTPOOL
103 log_must zpool export -F $TESTPOOL
104 log_must zpool import $TESTPOOL
106 log_must zpool export -F $TESTPOOL
109 log_must zpool import -f $TESTPOOL
111 log_must zpool export -F $TESTPOOL
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dro_props_001_pos.ksh51 set -A dataset $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \
52 $TESTPOOL/$TESTCTR/$TESTFS1 $TESTPOOL/$TESTFS@$TESTSNAP \
53 $TESTPOOL/$TESTVOL@$TESTSNAP
67 datasetexists $TESTPOOL/$TESTVOL@$TESTSNAP && \
68 destroy_snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
69 datasetexists $TESTPOOL/$TESTFS@$TESTSNAP && \
70 destroy_snapshot $TESTPOOL/$TESTFS@$TESTSNAP
77 create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
78 create_snapshot $TESTPOOL/$TESTVOL $TESTSNAP
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_002_pos.ksh63 set -A data_objs "$TESTPOOL/$TESTFS@$TESTSNAP" "$TESTPOOL/$TESTFS1" \
64 "$TESTPOOL/$TESTVOL" "$TESTPOOL/$TESTVOL1"
66 set -A data_objs "$TESTPOOL/$TESTFS@$TESTSNAP" "$TESTPOOL/$TESTFS1"
69 log_must zfs create $TESTPOOL/$TESTFS1
70 log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP
73 log_must zfs create -V $VOLSIZE $TESTPOOL/$TESTVOL
78 log_must zfs create -sV $BIGVOLSIZE $TESTPOOL/$TESTVOL1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/trim/
H A Dtrim_integrity.ksh45 if poolexists $TESTPOOL; then
46 destroy_pool $TESTPOOL
67 log_must zpool create -f $TESTPOOL $type $TRIM_VDEVS
72 dir="/$TESTPOOL/trim-$((RANDOM % 5))"
78 log_must du -hs /$TESTPOOL
80 log_must zpool trim $TESTPOOL
81 wait_trim $TESTPOOL $TRIM_VDEVS
83 verify_trim_io $TESTPOOL "ind" 10
84 verify_pool $TESTPOOL
86 log_must zpool destroy $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_get/
H A Dzfs_get_006_neg.ksh51 "all -H" "all -rp" "all -rH" "all -ph" "all -rpH" "all -r $TESTPOOL" \
52 "all -H $TESTPOOL" "all -p $TESTPOOL" "all -r -p -H $TESTPOOL" \
53 "all -rph $TESTPOOL" "all,available,reservation $TESTPOOL" \
54 "all $TESTPOOL?" "all $TESTPOOL*" "all nonexistpool"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/zpool_list/
H A Dzpool_list_001_pos.ksh47 TESTPOOL=${TESTPOOL%%/*}
50 set -A args "list $TESTPOOL" "list -H $TESTPOOL" "list" "list -H" \
51 "list -H -o name $TESTPOOL" "list -o name $TESTPOOL" \
52 "list -o name,size,capacity,health,altroot $TESTPOOL" \
53 "list -H -o name,size,capacity,health,altroot $TESTPOOL"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_011_neg.ksh48 if snapexists $TESTPOOL/$TESTFS@$TESTSNAP; then
49 log_must zfs destroy $TESTPOOL/$TESTFS@$TESTSNAP
52 if is_global_zone && datasetexists $TESTPOOL/$TESTVOL; then
53 log_must zfs destroy $TESTPOOL/$TESTVOL
60 fs=$TESTPOOL/$TESTFS
73 log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP
74 log_mustnot eval "zfs mount $TESTPOOL/$TESTFS@$TESTSNAP >/dev/null 2>&1"
77 log_must zfs create -V 10m $TESTPOOL/$TESTVOL
78 log_mustnot eval "zfs mount $TESTPOOL/$TESTVOL >/dev/null 2>&1"
H A Dzfs_mount_003_pos.ksh53 log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
54 log_must force_unmount $TESTPOOL/$TESTFS
70 unmounted $TESTPOOL/$TESTFS || \
73 log_must zfs set mountpoint=${mopt[i]} $TESTPOOL/$TESTFS
75 zfs $mountcmd $TESTPOOL/$TESTFS
78 log_fail "'zfs $mountcmd $TESTPOOL/$TESTFS' " \
81 log_note "Make sure the filesystem $TESTPOOL/$TESTFS is unmounted"
82 unmounted $TESTPOOL/$TESTFS || \
83 log_fail Filesystem $TESTPOOL/$TESTFS is mounted
/illumos-gate/usr/src/test/zfs-tests/tests/functional/reservation/
H A Dreservation_002_pos.sh60 log_must zero_reservation $TESTPOOL/$TESTFS
68 space_avail=`get_prop available $TESTPOOL`
73 OBJ_LIST="$TESTPOOL/$TESTVOL $TESTPOOL/$TESTVOL2"
80 log_must zfs create -V $vol_set_size $TESTPOOL/$TESTVOL
81 log_must zfs set reservation=none $TESTPOOL/$TESTVOL
82 log_must zfs create -s -V $sparse_vol_set_size $TESTPOOL/$TESTVOL2
85 for obj in $TESTPOOL/$TESTFS $OBJ_LIST ; do
87 space_avail=`get_prop available $TESTPOOL`
95 [[ $obj == $TESTPOOL/$TESTVOL ]] && \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/alloc_class/
H A Dalloc_class_002_neg.ksh34 log_mustnot zpool create $TESTPOOL raidz $ZPOOL_DISKS special $CLASS_DISK0
35 log_mustnot display_status $TESTPOOL
36 log_mustnot zpool destroy -f $TESTPOOL
38 log_mustnot zpool create $TESTPOOL $ZPOOL_DISKS special mirror \
40 log_mustnot display_status $TESTPOOL
41 log_mustnot zpool destroy -f $TESTPOOL
43 log_mustnot zpool create $TESTPOOL raidz $ZPOOL_DISKS special raidz \
45 log_mustnot display_status $TESTPOOL
46 log_mustnot zpool destroy -f $TESTPOOL
H A Dalloc_class_013_pos.ksh36 log_must zpool create $TESTPOOL $ZPOOL_DISKS dedup $CLASS_DISK0
37 log_must display_status "$TESTPOOL"
43 log_must zfs create -o dedup=on -V 2G $TESTPOOL/$TESTVOL
45 log_must echo y | newfs $ZVOL_DEVDIR/$TESTPOOL/$TESTVOL >/dev/null 2>&1
48 log_must zpool list -v $TESTPOOL
53 log_must zpool remove $TESTPOOL $CLASS_DISK0
56 sync_pool $TESTPOOL
59 log_must zdb -bbcc $TESTPOOL
61 log_must zpool destroy -f "$TESTPOOL"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_004_pos.ksh49 volsize=$(zfs get -H -o value volsize $TESTPOOL/$TESTVOL)
66 if datasetexists $TESTPOOL/$TESTVOL@$snap ; then
67 log_must zfs destroy $TESTPOOL/$TESTVOL@$snap
70 zfs set volsize=$volsize $TESTPOOL/$TESTVOL
93 voldev=/dev/zvol/dsk/$TESTPOOL/$TESTVOL
98 log_must is_zvol_dumpified $TESTPOOL/$TESTVOL
100 verify_snapshot $TESTPOOL/$TESTVOL
103 log_mustnot is_zvol_dumpified $TESTPOOL/$TESTVOL
108 log_mustnot is_zvol_dumpified $TESTPOOL/$TESTVOL
110 verify_snapshot $TESTPOOL/$TESTVOL
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/resilver/
H A Dresilver_restart_002.ksh45 destroy_pool $TESTPOOL
63 log_must zpool create -f -O recordsize=1k $TESTPOOL ${VDEV_FILES[0]}
64 log_must dd if=/dev/urandom of=/$TESTPOOL/file bs=1M count=32 > /dev/null 2>&1
67 objset=$(zdb -d $TESTPOOL/ | sed -ne 's/.*ID \([0-9]*\).*/\1/p')
68 object=$(ls -i /$TESTPOOL/file | awk '{print $1}')
71 log_must zinject -b `printf "%x:%x:0:3fff" $objset $object` $TESTPOOL
79 log_must zpool attach $TESTPOOL ${VDEV_FILES[0]} $SPARE_VDEV_FILE
84 zpool sync $TESTPOOL
85 err=$(zpool status $TESTPOOL | grep ${VDEV_FILES[0]} | awk '{print $3}')
103 log_must zpool sync $TESTPOOL
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rollback/
H A Dzfs_rollback_004_neg.ksh53 for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do
66 for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do
70 for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_scrub/
H A Dzpool_scrub_004_pos.ksh59 mntpnt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
64 while ! is_pool_resilvering $TESTPOOL; do
65 log_must zpool detach $TESTPOOL $DISK2
67 log_must zpool export $TESTPOOL
68 log_must zpool import $TESTPOOL
69 log_must zpool attach $TESTPOOL $DISK1 $DISK2
72 log_must is_pool_resilvering $TESTPOOL
73 log_mustnot zpool scrub $TESTPOOL
76 while ! is_pool_resilvered $TESTPOOL; do
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_remap/
H A Dzfs_remap_cliargs.ksh34 destroy_pool $TESTPOOL
41 f="$TESTPOOL/fs"
42 v="$TESTPOOL/vol"
43 s="$TESTPOOL/fs@snap"
44 b="$TESTPOOL/fs#bmark"
45 c="$TESTPOOL/clone"
55 log_must zpool create $TESTPOOL $DISK1
62 log_must zpool add $TESTPOOL $DISK2
63 log_must zpool remove $TESTPOOL $DISK1
64 log_must wait_for_removal $TESTPOOL
H A Dzfs_remap_obsolete_counts.ksh36 destroy_pool $TESTPOOL
43 f="$TESTPOOL/fs"
44 v="$TESTPOOL/vol"
45 s="$TESTPOOL/fs@snap"
46 c="$TESTPOOL/clone"
54 log_must zpool create -d -o feature@device_removal=enabled $TESTPOOL $DISK1
60 log_must zpool add $TESTPOOL $DISK2
61 log_must zpool remove $TESTPOOL $DISK1
62 log_must wait_for_removal $TESTPOOL
71 log_must zpool set feature@obsolete_counts=enabled $TESTPOOL

12345678910>>...36