mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
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 <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
This commit is contained in:
parent
d6f67df63c
commit
a7c358845b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user