Whamcloud - gitweb
LU-5451 lod: improve weird FID handling 60/11560/9
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 22 Aug 2014 15:21:25 +0000 (10:21 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 5 Dec 2014 13:41:22 +0000 (13:41 +0000)
commit2eb434daf3bd511c26dd1dc2fd791c3cde756ba3
tree5f6412960c62a33ddf5e93e0d40487b75f33c76c
parent5c2e692d2ae971f1ba0811487c37b3510ccde8be
LU-5451 lod: improve weird FID handling

In lod_fld_lookup() the FID in question may have come from disk or
wire. Thus if fid_is_sane() returns false then return -EIO rather than
asserting.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I6c7e3885a8b1aa81fcaa8891392a11e40a02fbce
Reviewed-on: http://review.whamcloud.com/11560
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_dev.c