diff options
author | Andriy Gapon <[email protected]> | 2016-03-25 16:32:11 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-03-25 12:09:41 -0700 |
commit | 72a780cd1ceb94ee4fa226bf9a8948f3dd0e2d95 (patch) | |
tree | 37ef3a930a62ede4bec6bb7fa6daf54a11c0903c /tests | |
parent | 647cb8545d92fab4cbbf2ffb94a458c1fced68b3 (diff) |
write_dirs: set_partition expects zero-based partition indeces
... despite partition names based 1-based.
Signed-off-by: Andriy Gapon <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4446
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/write_dirs/setup.ksh | 5 |
1 files changed, 4 insertions, 1 deletions
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}" |