]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - scrub/Makefile
xfs_scrub: check directory connectivity
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 2 Feb 2018 15:32:46 +0000 (09:32 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 2 Feb 2018 15:32:46 +0000 (09:32 -0600)
commitc4892e766914ab1ea36ae93cc310eebec9f1d524
treec4bb1678a159e7498402db89dbe37ed58f1fd959
parentfa16b376a47a4a468c378ae95e7775cbe6c9cb98
xfs_scrub: check directory connectivity

Opening directories by file handle will cause the kernel to perform
parent lookups all the way to the root directory.  Take advantage of
this to ensure that directories actually connect to the root.  Some
day we'll have parent pointers and can make this more comprehensive.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/Makefile
scrub/phase5.c [new file with mode: 0644]
scrub/xfs_scrub.c
scrub/xfs_scrub.h