From: Andriy Gapon Date: Fri, 25 Mar 2016 14:32:11 +0000 (+0200) Subject: write_dirs: set_partition expects zero-based partition indeces X-Git-Tag: zfs-0.7.0-rc1~221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72a780cd1ceb94ee4fa226bf9a8948f3dd0e2d95;p=zfs write_dirs: set_partition expects zero-based partition indeces ... despite partition names based 1-based. Signed-off-by: Andriy Gapon Signed-off-by: Brian Behlendorf Closes #4446 --- diff --git a/tests/zfs-tests/tests/functional/write_dirs/setup.ksh b/tests/zfs-tests/tests/functional/write_dirs/setup.ksh index 14f60c9e5..49d5f7aa5 100755 --- a/tests/zfs-tests/tests/functional/write_dirs/setup.ksh +++ b/tests/zfs-tests/tests/functional/write_dirs/setup.ksh @@ -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}"