aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2018-01-08 10:49:04 -0800
committerDarrick J. Wong <[email protected]>2018-01-08 10:49:04 -0800
commitd658e72b4a09c0eb65c13fc5c15bc6e6d93ed8bc (patch)
treefcc2b1c8080527cc3c041bae00376b98bbddea59 /scripts
parent1ad1205e716fa2a88ca960601cc807cd38853c01 (diff)
xfs: distinguish between corrupt inode and invalid inum in xfs_scrub_get_inode
In xfs_scrub_get_inode, we don't do a good enough job distinguishing EINVAL returns from xfs_iget w/ IGET_UNTRUSTED -- this can happen if the passed in inode number is invalid (past eofs, inobt says it isn't an inode) or if the inum is actually valid but the inode buffer fails verifier. In the first case we still want to return ENOENT, but in the second case we want to capture the corruption error. Therefore, if xfs_iget returns EINVAL, try the raw imap lookup. If that succeeds, we conclude it's a corruption error, otherwise we just bounce out to userspace. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Dave Chinner <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions