Whamcloud - gitweb
LU-6321 lfsck: make lfsck_namespace trace file as index 46/13946/2
authorFan Yong <fan.yong@intel.com>
Sun, 7 Dec 2014 01:22:40 +0000 (09:22 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 4 Mar 2015 03:45:56 +0000 (03:45 +0000)
commit1ece3b3ffdf3dc112be19dd0ee2563b3e22d4b57
treeb275b9b863f6d98f06dba607dfd9051a4ab88000
parent0964ac7523ce816413b309f5b65a988713f607d0
LU-6321 lfsck: make lfsck_namespace trace file as index

Originally, the "lfsck_namespace" file stored both the namespace
LFSCK statistics information and the FIDs to be double scanned.
But to improve the namespace LFSCK performance (since Lustre-2.7),
we used multiple trace files with the name "lfsck_namespace_xx".
At that time, the original "lfsck_namespace" file only need to
record the namespace LFSCK statistics information. So we made it
as regular file, NOT index file. Such changes will cause trouble
when downgrade to Lustre-2.6 or older, becuase the old namespace
LFSCK needs an index trace file instead of regular file. To avoid
the compatibility issues, we will keep the "lfsck_namespace" file
as index file on b2_7 and newer release.

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