Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit d9a94480 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: xfs_iget in the directory scrubber needs to use UNTRUSTED

In commit 4b80ac64, we tried to strengthen the directory scrubber by
using the iget call to detect directory entries that point to
unallocated inodes.  Unfortunately, that commit neglected to pass
XFS_IGET_UNTRUSTED to xfs_iget, so we don't check the inode btree first.
If the inode number points to something that isn't even an inode
cluster, iget will throw corruption errors and return -EFSCORRUPTED,
which means that we fail to mark the directory corrupt.

Fixes: 4b80ac64

 ("xfs: scrub should mark a directory corrupt if any entries cannot be iget'd")
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent 4c233b5c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment