From: Lu Fengqi Date: Wed, 28 Jun 2017 05:45:31 +0000 (+0800) Subject: btrfs/027: reorder the arguments of btrfs replace X-Git-Tag: v2022.05.01~1994 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=591b5d75b834234c2530e9049984003f29661516;p=xfstests-dev.git btrfs/027: reorder the arguments of btrfs replace The option parser only accept options before non-option argument. Although David Sterba has submitted commit df8c7225ba00 ("btrfs: reorder arguments so that options come first"), but this case seems to be left out. Signed-off-by: Lu Fengqi Reviewed-by: Eryu Guan Reviewed-by: David Sterba Signed-off-by: Eryu Guan --- diff --git a/tests/btrfs/027 b/tests/btrfs/027 index 2c8b458e..625a27f5 100755 --- a/tests/btrfs/027 +++ b/tests/btrfs/027 @@ -91,8 +91,8 @@ run_test() _scratch_mount -o degraded >>$seqres.full 2>&1 # replace $missing_dev with $replace_dev and scrub it to double-check - $BTRFS_UTIL_PROG replace start -B -r $missing_dev_id $SPARE_DEV \ - $SCRATCH_MNT -f >>$seqres.full 2>&1 + $BTRFS_UTIL_PROG replace start -B -f -r $missing_dev_id $SPARE_DEV \ + $SCRATCH_MNT >>$seqres.full 2>&1 if [ $? -ne 0 ]; then echo "btrfs replace failed" _spare_dev_put