mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
btrfs: reorder arguments so that options come first
The option parser in the btrfs utility is going to be updated and will accept arguments in a stricter form, namely that options must come before their non-option argument. Otherwise eg. the -f option in send would be understood as another path and not an option leading to many test failures. The canonical form should be: btrfs command subcommand [-options] [arguments] Signed-off-by: David Sterba <dsterba@suse.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
+5
-5
@@ -126,9 +126,9 @@ run_check $FSSUM_PROG -A -f -w $tmp/1.fssum $SCRATCH_MNT/mysnap1
|
||||
run_check $FSSUM_PROG -A -f -w $tmp/2.fssum -x $SCRATCH_MNT/mysnap2/mysnap1 \
|
||||
$SCRATCH_MNT/mysnap2
|
||||
|
||||
_run_btrfs_util_prog send $SCRATCH_MNT/mysnap1 -f $tmp/1.snap
|
||||
_run_btrfs_util_prog send -p $SCRATCH_MNT/mysnap1 $SCRATCH_MNT/mysnap2 \
|
||||
-f $tmp/2.snap
|
||||
_run_btrfs_util_prog send -f $tmp/1.snap $SCRATCH_MNT/mysnap1
|
||||
_run_btrfs_util_prog send -p $SCRATCH_MNT/mysnap1 -f $tmp/2.snap \
|
||||
$SCRATCH_MNT/mysnap2
|
||||
|
||||
_check_scratch_fs
|
||||
|
||||
@@ -136,10 +136,10 @@ _scratch_unmount
|
||||
_scratch_mkfs >/dev/null 2>&1
|
||||
_scratch_mount
|
||||
|
||||
_run_btrfs_util_prog receive $SCRATCH_MNT -f $tmp/1.snap
|
||||
_run_btrfs_util_prog receive -f $tmp/1.snap $SCRATCH_MNT
|
||||
run_check $FSSUM_PROG -r $tmp/1.fssum $SCRATCH_MNT/mysnap1
|
||||
|
||||
_run_btrfs_util_prog receive $SCRATCH_MNT -f $tmp/2.snap
|
||||
_run_btrfs_util_prog receive -f $tmp/2.snap $SCRATCH_MNT
|
||||
run_check $FSSUM_PROG -r $tmp/2.fssum $SCRATCH_MNT/mysnap2
|
||||
|
||||
status=0
|
||||
|
||||
Reference in New Issue
Block a user