Whamcloud - gitweb
LU-5519 lfsck: repair bad name hash for striped directory 46/11846/13
authorFan Yong <fan.yong@intel.com>
Wed, 27 Aug 2014 17:30:27 +0000 (01:30 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 31 Oct 2014 02:26:39 +0000 (02:26 +0000)
commit44888417ecbf09fc6f294311dd98914aefda05c4
treeb3250515b6e44322fac7ebc54ca360fbe2bbc9c2
parent41ef9e4b10853c985b17e2ca5a0c430b11b40d60
LU-5519 lfsck: repair bad name hash for striped directory

If the name hash of some name entry under the striped directory
does not match the shard of the striped directory, then the LFSCK
will repair the inconsistency. Ideally, the LFSCK should migrate
the name entry from the current MDT to the right MDT (another one),
but before the async commit finished, the LFSCK will change the
striped directory's hash type as LMV_HASH_TYPE_UNKNOWN and mark
the lmv flags as LMV_HASH_FLAG_BAD_TYPE.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I665a77473be1fead09c12cb7fb5d0ffa739ffe87
Reviewed-on: http://review.whamcloud.com/11846
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/include/obd_support.h
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_namespace.c
lustre/lfsck/lfsck_striped_dir.c
lustre/lmv/lmv_obd.c
lustre/osp/osp_trans.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity-lfsck.sh
lustre/utils/wirecheck.c
lustre/utils/wiretest.c