ZTS: Fix add-o_ashift.ksh

Use option '-o' after action for compatibility

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 #10426
This commit is contained in:
Igor K 2020-06-09 20:31:16 +03:00 committed by GitHub
parent b7654bd794
commit 6722be2823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ typeset badvals=("off" "on" "1" "8" "17" "1b" "ff" "-")
for badval in ${badvals[@]} for badval in ${badvals[@]}
do do
log_must zpool create $TESTPOOL $disk1 log_must zpool create $TESTPOOL $disk1
log_mustnot zpool add $TESTPOOL -o ashift="$badval" $disk2 log_mustnot zpool add -o ashift="$badval" $TESTPOOL $disk2
# clean things for the next run # clean things for the next run
log_must zpool destroy $TESTPOOL log_must zpool destroy $TESTPOOL
log_must zpool labelclear $disk1 log_must zpool labelclear $disk1