Whamcloud - gitweb
LU-3039 lfsck: misc patch for LFSCK 1.5 debts (1)
authorFan Yong <yong.fan@whamcloud.com>
Mon, 25 Feb 2013 14:19:26 +0000 (22:19 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 5 Apr 2013 18:06:00 +0000 (14:06 -0400)
commit64af83190180a8f3e90aea270e2baaecb1ecdb93
treecf71ae462308e7fb637b0d0b4347d9d156b1c9ca
parent2fdc87cb05e0b1841938b4cf39ef07a26c386b2b
LU-3039 lfsck: misc patch for LFSCK 1.5 debts (1)

1) Handle backup and restore case: add FID-in-dirent by re-insert
   the name entry with proper ldiskfs PDO lock processed.

2) Fix some deadlock cases between LFSCK engine thread and OI scrub
   thread: one may fall into wait without waking up the other.

3) lfsck performance test for the cases: lfsck with load, lfsck
   during create, backup/restore, simulate upgrade from 1.8.

4) Other cleanup.

Test-Parameters: testlist=sanity-scrub,sanity-lfsck,lfsck-performance

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ib539291c604d807475cacfdd56d910e9e86d6ac7
Reviewed-on: http://review.whamcloud.com/5764
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
14 files changed:
lustre/include/lustre_fid.h
lustre/mdd/mdd_compat.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_lfsck.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_reint.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_scrub.c
lustre/tests/Makefile.am
lustre/tests/lfsck-performance.sh [new file with mode: 0644]
lustre/tests/sanity-lfsck.sh
lustre/tests/scrub-performance.sh
lustre/tests/test-framework.sh