Whamcloud - gitweb
LU-5513 lfsck: repair multiple referenced name entry 47/12247/5
authorFan Yong <fan.yong@intel.com>
Sun, 17 Aug 2014 23:50:56 +0000 (07:50 +0800)
committerAndreas Dilger <andreas.dilger@intel.com>
Thu, 16 Oct 2014 17:04:42 +0000 (17:04 +0000)
commit7093fb094f0cf7ea1a5c9a21b198f41f2558a9b8
tree829d01e359cdf21381e7fefd14905d93c6e7c549
parent72ef9e50dfccab1befc31f92e699e41a7920c9c4
LU-5513 lfsck: repair multiple referenced name entry

If more than one MDT-objects back reference the same name entry via
their each own linkEA entry, but the name entry only references one
MDT-object of them. Then for those non-recognized MDT-objects, the
namespace LFSCK will remove the non-recognized linkEA entries when
double scan them. And if the MDT-object has no linkEA entries left
after the cleanup, then it will be regarded as orphan and inserted
into .lustre/lost+found/MDTxxxx/ directory with the name:
${FID}-${infix}-${type}-${conflict_version}

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ie50711c3c17861bd2c0f491052caa9dcea0e02f2
Reviewed-on: http://review.whamcloud.com/12247
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/include/obd_support.h
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_namespace.c
lustre/mdd/mdd_dir.c
lustre/obdclass/linkea.c
lustre/tests/sanity-lfsck.sh
lustre/tests/test-framework.sh