]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/027: reorder the arguments of btrfs replace
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Wed, 28 Jun 2017 05:45:31 +0000 (13:45 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 29 Jun 2017 03:14:29 +0000 (11:14 +0800)
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 <lufq.fnst@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/btrfs/027

index 2c8b458e5ff42d0df1d7075f1c269b2fe2ee1182..625a27f5b45577912aaa481b4af9e1642de1994a 100755 (executable)
@@ -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