xfs: test increased overlong directory extent discard threshold

As of 2007, metadump has an interesting "feature" where it discards
directory extents that are longer than 1000 (originally 20) blocks.
This ostensibly was to protect metadump from corrupt bmbt records, but
it also has the effect of omitting from the metadump valid long extents.
The end result is that we create incomplete metadumps, which is
exacerbated by the lack of warning unless -w is passed.

So now that we've fixed the default threshold to MAXEXTLEN, check that
the installed metadump no longer exhibits this behavior.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Darrick J. Wong
2017-09-28 22:37:39 -07:00
committed by Eryu Guan
parent a44ee35b62
commit 8443ff29f2
3 changed files with 124 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
QA output created by 432
Format and mount
Create huge dir
Check for > 1000 block extent?
Try to metadump
Check restored metadump image