write_dirs: set_partition expects zero-based partition indeces

... 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
This commit is contained in:
Andriy Gapon 2016-03-25 16:32:11 +02:00 committed by Brian Behlendorf
parent 647cb8545d
commit 72a780cd1c
1 changed files with 4 additions and 1 deletions

View File

@ -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}"