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
@@ -77,7 +77,7 @@ sleep 3
|
||||
# The send operation used to fail with -ESTALE due to the presence of the
|
||||
# orphan inode.
|
||||
_run_btrfs_util_prog subvolume snapshot -r $SCRATCH_MNT $SCRATCH_MNT/mysnap
|
||||
_run_btrfs_util_prog send $SCRATCH_MNT/mysnap -f /dev/null
|
||||
_run_btrfs_util_prog send -f /dev/null $SCRATCH_MNT/mysnap
|
||||
|
||||
status=0
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user