Whamcloud - gitweb
LU-1866 osd: FID-in-LMA and OI files
authorFan Yong <yong.fan@whamcloud.com>
Sat, 12 Jan 2013 11:08:35 +0000 (19:08 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 2 Feb 2013 22:10:53 +0000 (17:10 -0500)
commit4a88dc81ff314005e428cbfa1c931c71ff03c212
tree15f53efeaf95860f61c250649eb1d419dc6d9ef4
parent8fa27491bbc4440f1a09dc3c42919140e3146cae
LU-1866 osd: FID-in-LMA and OI files

Generate FID-in-LMA not only for normal objects, but also for
IGIF objects, server-side local files, and other non-OST/LLOG
objects.

LAST_ID has FID-in-LMA but no related mappings in the OI file.

At the same time, OI mapping usage is also extended to above
objects. Only the objects marked as "LDISKFS_STATE_LUSTRE_NO_OI"
or OST objects have no OI mappings the OI files.

It is part of 1.8 IGIF objects upgrage handling. OI scrub will
automatically generate IGIF-in-LMA and add related OI mappings
in the OI files.

Test-Parameters: envdefinitions=ENABLE_QUOTA=yes testlist=sanity-scrub

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: If1e1434c238f2ab737e35433bfad1abbb00fcb00
Reviewed-on: http://review.whamcloud.com/4904
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
lustre/include/obd_support.h
lustre/mdd/mdd_device.c
lustre/obdclass/local_storage.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_oi.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/tests/sanity-scrub.sh