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:
+1
-1
@@ -80,6 +80,6 @@ $BTRFS_UTIL_PROG subvolume snapshot -r $SCRATCH_MNT \
|
||||
do_snapshots &
|
||||
snapshots_pid=$!
|
||||
|
||||
$BTRFS_UTIL_PROG send $SCRATCH_MNT/snap_1 -f /dev/null 2>&1 | _filter_scratch
|
||||
$BTRFS_UTIL_PROG send -f /dev/null $SCRATCH_MNT/snap_1 2>&1 | _filter_scratch
|
||||
|
||||
status=0 ; exit
|
||||
|
||||
Reference in New Issue
Block a user