From 72a780cd1ceb94ee4fa226bf9a8948f3dd0e2d95 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Fri, 25 Mar 2016 16:32:11 +0200 Subject: [PATCH] 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 --- tests/zfs-tests/tests/functional/write_dirs/setup.ksh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/zfs-tests/tests/functional/write_dirs/setup.ksh b/tests/zfs-tests/tests/functional/write_dirs/setup.ksh index 14f60c9e5d..49d5f7aa5d 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}"