]> git.proxmox.com Git - mirror_zfs.git/commitdiff
ZTS: Fix attach-o_ashift.ksh for multiple platforms
authorIgor K <igor@dilos.org>
Wed, 27 Nov 2019 22:55:43 +0000 (01:55 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 27 Nov 2019 22:55:43 +0000 (14:55 -0800)
The `-o ashift` option must appear after attach to be properly
interpreted by getopt(3) on all platforms.

Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Igor Kozhukhov <igor@dilos.org>
Closes #9636

tests/zfs-tests/tests/functional/cli_root/zpool_attach/attach-o_ashift.ksh

index fd33fb9506a9068142dee70afbb4701c86dffa82..3c3706ff390c3a054fdd9deef4308d481a280069 100755 (executable)
@@ -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