]> git.proxmox.com Git - mirror_zfs.git/commitdiff
write_dirs: set_partition expects zero-based partition indeces
authorAndriy Gapon <andriy.gapon@clusterhq.com>
Fri, 25 Mar 2016 14:32:11 +0000 (16:32 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Mar 2016 19:09:41 +0000 (12:09 -0700)
... despite partition names based 1-based.

Signed-off-by: Andriy Gapon <andriy.gapon@clusterhq.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4446

tests/zfs-tests/tests/functional/write_dirs/setup.ksh

index 14f60c9e5d23035792cc159e7ce9ad39965af333..49d5f7aa5de044b79e96afffccb06d9a21f6c318 100755 (executable)
@@ -37,7 +37,7 @@ export SIZE="1gb"
 
 if is_linux; then
        export SLICE_PREFIX="p"
-       export SLICE=1
+       export SLICE=0
 else
        export SLICE_PREFIX="s"
        export SLICE=0
@@ -51,4 +51,7 @@ DISK=${DISKS%% *}
 
 log_must set_partition $SLICE "" $SIZE $DISK
 
+if is_linux; then
+       export SLICE=1
+fi
 default_setup "${DISK}${SLICE_PREFIX}${SLICE}"