mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
btrfs/027: reorder the arguments of btrfs replace
The option parser only accept options before non-option argument.
Although David Sterba has submitted commit df8c7225ba ("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>
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user