diff options
author | Igor K <[email protected]> | 2019-11-28 01:55:43 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-11-27 14:55:43 -0800 |
commit | a7c358845b1fdfc60b5f1f70d9d6a4ab87f95fa4 (patch) | |
tree | 41721ba3d3201089b903f20b681bd7be621c229b /tests | |
parent | d6f67df63c58a5460b5b78f653dd09ad3f7f610e (diff) |
ZTS: Fix attach-o_ashift.ksh for multiple platforms
The `-o ashift` option must appear after attach to be properly
interpreted by getopt(3) on all platforms.
Reviewed-by: Richard Elling <[email protected]>
Reviewed-by: Kjeld Schouten <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Igor Kozhukhov <[email protected]>
Closes #9636
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/cli_root/zpool_attach/attach-o_ashift.ksh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_attach/attach-o_ashift.ksh b/tests/zfs-tests/tests/functional/cli_root/zpool_attach/attach-o_ashift.ksh index fd33fb950..3c3706ff3 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zpool_attach/attach-o_ashift.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zpool_attach/attach-o_ashift.ksh @@ -92,7 +92,7 @@ typeset badvals=("off" "on" "1" "8" "17" "1b" "ff" "-") for badval in ${badvals[@]} do log_must zpool create $TESTPOOL1 $disk1 - log_mustnot zpool attach $TESTPOOL1 -o ashift=$badval $disk1 $disk2 + log_mustnot zpool attach -o ashift=$badval $TESTPOOL1 $disk1 $disk2 log_must zpool destroy $TESTPOOL1 log_must zpool labelclear $disk1 log_mustnot zpool labelclear $disk2 |