aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2009-01-01 14:21:16 -0500
committerLachlan McIlroy <[email protected]>2009-01-09 15:17:17 +1100
commitc9a98553d513dfc82cdce869970d5662c1f22c68 (patch)
treed68cc98fa807d9f9719cb04307739ab9f9d9b9b5 /lib/string_helpers.c
parent9e42d0cf5020aaf217433cad1a224745241d212a (diff)
[XFS] pass XFS_IGET_BULKSTAT to xfs_iget for handle operations
NFS clients or users of the handle ioctls can pass us arbitrary inode numbers through the exportfs interface. Make sure we use the XFS_IGET_BULKSTAT so that these don't cause shutdowns due to the corruption checks. Also translate the EINVAL we get back for invalid inode clusters into an ESTALE which is more appropinquate, and remove the useless check for a NULL inode on a successfull xfs_iget return. I have a testcase to reproduce this using the handle interface which I will submit to xfsqa. Reported-by: Mario Becroft <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Eric Sandeen <[email protected]> Signed-off-by: Lachlan McIlroy <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions