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:
parent
647cb8545d
commit
72a780cd1c
|
@ -37,7 +37,7 @@ export SIZE="1gb"
|
||||||
|
|
||||||
if is_linux; then
|
if is_linux; then
|
||||||
export SLICE_PREFIX="p"
|
export SLICE_PREFIX="p"
|
||||||
export SLICE=1
|
export SLICE=0
|
||||||
else
|
else
|
||||||
export SLICE_PREFIX="s"
|
export SLICE_PREFIX="s"
|
||||||
export SLICE=0
|
export SLICE=0
|
||||||
|
@ -51,4 +51,7 @@ DISK=${DISKS%% *}
|
||||||
|
|
||||||
log_must set_partition $SLICE "" $SIZE $DISK
|
log_must set_partition $SLICE "" $SIZE $DISK
|
||||||
|
|
||||||
|
if is_linux; then
|
||||||
|
export SLICE=1
|
||||||
|
fi
|
||||||
default_setup "${DISK}${SLICE_PREFIX}${SLICE}"
|
default_setup "${DISK}${SLICE_PREFIX}${SLICE}"
|
||||||
|
|
Loading…
Reference in New Issue