Whamcloud - gitweb
LU-2033 scrub: lookup server local files by name
authorFan Yong <yong.fan@whamcloud.com>
Wed, 26 Sep 2012 16:53:18 +0000 (00:53 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 6 Oct 2012 06:33:18 +0000 (02:33 -0400)
commit1bdeabf2eb49e6c3dcfe83994b59426b36e724a0
tree0b5c60b175d61be6640562f6677c794824c3050a
parent51435cfffcd6815e70fb46b0ec2edcac3327bf44
LU-2033 scrub: lookup server local files by name

after backup/restore ldiskfs's OI becomes invalid (inodes
change). OI scrubber scans a filesystem to rebuild OI. this
can take quite long. to be able to start MDS earlier (right
after restore) MDS should lookup by name all internal files
required for startup as name->inode mapping is preserved by
backup/restore. this patch make local object library to
lookup a file storing last used fid within a given sequence.

the patch also fixes sanity-scrub/11 to expect skipping of
files created + directory + per-ost llog objects.

Signed-off-by: Fan Yong <yong.fan@whamcloud.com>
Change-Id: I56179c03279062464960af73de031f13d31bac14
Reviewed-on: http://review.whamcloud.com/4106
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_lfsck.c
lustre/obdclass/local_storage.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_lproc.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-ldiskfs/osd_scrub.h
lustre/tests/sanity-scrub.sh