]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/inuse/inuse_008_pos.ksh
Enable remaining tests
[mirror_zfs.git] / tests / zfs-tests / tests / functional / inuse / inuse_008_pos.ksh
index 5144054a976a07e4d8ccc22fb9647ead4f278d51..95d39d958c3fcd8f8af4deb3bf560854c0b8f055 100755 (executable)
 
 verify_runnable "global"
 
+if ! is_physical_device $FS_DISK0; then
+       log_unsupported "This directory cannot be run on raw files."
+fi
+
 function cleanup
 {
        poolexists $TESTPOOL1 || zpool import $TESTPOOL1 >/dev/null 2>&1
@@ -78,12 +82,19 @@ log_onexit cleanup
 set -A vdevs "" "mirror" "raidz" "raidz1" "raidz2"
 
 typeset -i i=0
+typeset cyl=""
+
+for num in 0 1 2 3 ; do
+       eval typeset disk=\${FS_DISK$num}
+       zero_partitions $disk
+done
 
 for num in 0 1 2 3 ; do
        eval typeset slice=\${FS_SIDE$num}
        disk=${slice%${SLICE_PREFIX}*}
        slice=${slice##*${SLICE_PREFIX}}
-       log_must set_partition $slice "" $FS_SIZE $disk
+       log_must set_partition $slice "$cyl" $FS_SIZE $disk
+       cyl=$(get_endslice $disk $slice)
 done
 
 while (( i < ${#vdevs[*]} )); do