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
@@ -109,9 +109,9 @@ run_check $FSSUM_PROG -A -f -w $send_files_dir/1.fssum $SCRATCH_MNT/mysnap1
|
||||
run_check $FSSUM_PROG -A -f -w $send_files_dir/2.fssum \
|
||||
-x $SCRATCH_MNT/mysnap2/mysnap1 $SCRATCH_MNT/mysnap2
|
||||
|
||||
_run_btrfs_util_prog send $SCRATCH_MNT/mysnap1 -f $send_files_dir/1.snap
|
||||
_run_btrfs_util_prog send -p $SCRATCH_MNT/mysnap1 $SCRATCH_MNT/mysnap2 \
|
||||
-f $send_files_dir/2.snap
|
||||
_run_btrfs_util_prog send -f $send_files_dir/1.snap $SCRATCH_MNT/mysnap1
|
||||
_run_btrfs_util_prog send -p $SCRATCH_MNT/mysnap1 -f $send_files_dir/2.snap \
|
||||
$SCRATCH_MNT/mysnap2
|
||||
|
||||
# Now recreate the filesystem by receiving both send streams and verify we get
|
||||
# the same content that the original filesystem had.
|
||||
@@ -119,9 +119,9 @@ _scratch_unmount
|
||||
_scratch_mkfs >>$seqres.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
_run_btrfs_util_prog receive $SCRATCH_MNT -f $send_files_dir/1.snap
|
||||
_run_btrfs_util_prog receive -f $send_files_dir/1.snap $SCRATCH_MNT
|
||||
run_check $FSSUM_PROG -r $send_files_dir/1.fssum $SCRATCH_MNT/mysnap1
|
||||
_run_btrfs_util_prog receive $SCRATCH_MNT -f $send_files_dir/2.snap
|
||||
_run_btrfs_util_prog receive -f $send_files_dir/2.snap $SCRATCH_MNT
|
||||
run_check $FSSUM_PROG -r $send_files_dir/2.fssum $SCRATCH_MNT/mysnap2
|
||||
|
||||
echo "Silence is golden"
|
||||
|
||||
Reference in New Issue
Block a user