]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: mark dir corrupt when lookup-by-hash fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Mar 2020 17:37:57 +0000 (10:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Mar 2020 14:58:13 +0000 (07:58 -0700)
commit00b32c2160dede8a2aad17bec45a040a55de354f
tree19c8185b4085b62004e86ba2060701ef38417ca0
parent26e740a9e0a69f8564e8a5575565b79745374fc6
xfs: mark dir corrupt when lookup-by-hash fails

In xchk_dir_actor, we attempt to validate the directory hash structures
by performing a directory entry lookup by (hashed) name.  If the lookup
returns ENOENT, that means that the hash information is corrupt.  The
_process_error functions don't catch this, so we have to add that
explicitly.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/dir.c