Whamcloud - gitweb
LU-6317 lfsck: NOT count the objects repeatedly 33/13933/4
authorFan Yong <fan.yong@intel.com>
Sun, 7 Dec 2014 04:41:18 +0000 (12:41 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 25 Mar 2015 13:04:28 +0000 (13:04 +0000)
commite9a6c24504b4aae13d9c0f1caf9c6827f0a6a138
treee60250bc4d3750f6f0ca63713c792488d9dec0af
parentd381825c0e77fd342e5d1cf136135ec3f35ff22a
LU-6317 lfsck: NOT count the objects repeatedly

The namespace LFSCK uses object-table based iteration plus namespace
based directory traversing to scan the system. So one object will be
returned twice by them. Counting the objects repeatedly will confuse
the users. So the namespace LFSCK should only count the objects that
are scanned via namespace based directory traversing.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I36459743843e1db1e9372d46d3aafddef033d699
Reviewed-on: http://review.whamcloud.com/13933
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c
lustre/tests/sanity-lfsck.sh