Whamcloud - gitweb
LU-6050 target: control OST-index in IDIF via ROCOMPAT flag 16/13516/5
authorFan Yong <fan.yong@intel.com>
Mon, 10 Nov 2014 20:48:24 +0000 (04:48 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 8 Feb 2015 02:15:34 +0000 (02:15 +0000)
commitecd28d9b6cb691bda8184a7e07f1acc1ccded391
tree48d9d54f422d979ed3c26889ecf41b326795a4dc
parent8febfe0e30c5febdf716e4591c355199de4a6ab8
LU-6050 target: control OST-index in IDIF via  ROCOMPAT flag

Introduce new flag OBD_ROCOMPAT_IDX_IN_IDIF that is stored in the
last_rcvd file. For new formatted OST device, it will be auto set;
for the case of upgrading from old OST device, you can enable it
via the lproc interface osd-ldiskfs.index_in_idif. With such flag
enabled, for new created OST-object, its IDIF-in-LMA will contain
the OST-index; for the existing OST-object, the OSD will convert
old format IDIF as new format IDIF with OST-index stored in the
LMA EA when accessing such OST-object or via OI scrub. Once such
flag is enabled, it cannot be reverted back, so the system cannot
be downgraded to the orignal incompatible version.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I9e6e089d54fdb3970bb201eedac8dc09be2cc1c1
Reviewed-on: http://review.whamcloud.com/13516
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ChangeLog
lustre/include/lu_object.h
lustre/include/lustre_disk.h
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/target/tgt_lastrcvd.c
lustre/target/tgt_main.c
lustre/tests/conf-sanity.sh