Whamcloud - gitweb
LU-6066 lfsck: handle file's nlink attribute properly 81/13181/2
authorFan Yong <fan.yong@intel.com>
Thu, 9 Oct 2014 16:05:33 +0000 (00:05 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 10 Jan 2015 04:40:13 +0000 (04:40 +0000)
commit85be1fae82b515094b60bb20eb48f88989ccc6e9
treeeef10a54e65ad3c8e20bdfdb88ad66a319ec8315
parentf9920b4924edce1bd341622eee4281fdcd41845a
LU-6066 lfsck: handle file's nlink attribute properly

If the LFSCK does not know whether the file's linkEA is valid
or not, then it should not use the linkEA to verify the file's
nlink attribute.

If the file has been removed during the LFSCK, the LFSCK should
skip the file's nlink attribute verification.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I13deedce369f8c76ed97bc0bd29e00c82b1e89ff
Reviewed-on: http://review.whamcloud.com/13181
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_namespace.c