]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs/503: test metadump obfuscation, not progressbars
authorDarrick J. Wong <djwong@kernel.org>
Wed, 7 Feb 2024 02:19:13 +0000 (18:19 -0800)
committerZorro Lang <zlang@kernel.org>
Fri, 9 Feb 2024 05:27:17 +0000 (13:27 +0800)
The -g switch to xfs_metadump turns on progress reporting, but nothing
in this test actually checks that it works.

The -o switch turns off obfuscation, which is much more critical to
support teams.

Change this test to check -o and -ao instead of -g or -ag.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/503
tests/xfs/503.out

index 854cc74bbe34607857dd61b2f42cb7ee192b9d06..07d243bc06c1211bb54b6961f802c7309680ec7c 100755 (executable)
@@ -47,16 +47,16 @@ metadump_file=$testdir/scratch.md
 copy_file=$testdir/copy.img
 
 echo "metadump and mdrestore"
-_xfs_verify_metadumps '-a -o'
+_xfs_verify_metadumps
 
 echo "metadump a and mdrestore"
 _xfs_verify_metadumps '-a'
 
-echo "metadump g and mdrestore"
-_xfs_verify_metadumps '-g' >> $seqres.full
+echo "metadump o and mdrestore"
+_xfs_verify_metadumps '-o'
 
-echo "metadump ag and mdrestore"
-_xfs_verify_metadumps '-a -g' >> $seqres.full
+echo "metadump ao and mdrestore"
+_xfs_verify_metadumps '-a -o'
 
 echo copy
 $XFS_COPY_PROG $SCRATCH_DEV $copy_file >> $seqres.full
index 496f2516e4c4d522b4e2c89cd1609304c7b26174..5e7488456da524358d0a68f24ab20cbb7e1b5cf5 100644 (file)
@@ -2,7 +2,7 @@ QA output created by 503
 Format and populate
 metadump and mdrestore
 metadump a and mdrestore
-metadump g and mdrestore
-metadump ag and mdrestore
+metadump o and mdrestore
+metadump ao and mdrestore
 copy
 recopy