]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: test increased overlong directory extent discard threshold
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 29 Sep 2017 05:37:39 +0000 (22:37 -0700)
committerEryu Guan <eguan@redhat.com>
Sun, 1 Oct 2017 11:24:21 +0000 (19:24 +0800)
commit8443ff29f23d909038b33c309eada5f370563769
tree7adacafe35317ffe06368ae849bcbe28d7073a86
parenta44ee35b6282d8337bed5dbe9c6a720cc0a9533f
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>
tests/xfs/432 [new file with mode: 0755]
tests/xfs/432.out [new file with mode: 0644]
tests/xfs/group