Whamcloud - gitweb
LU-10186 osd-zfs: move LAST_ID OI mapping out of oi.xx 79/28679/14
authorFan Yong <fan.yong@intel.com>
Wed, 29 Nov 2017 04:24:47 +0000 (12:24 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 17 Dec 2017 06:19:27 +0000 (06:19 +0000)
commite95e4d3227fdf9777b58600b39173d1c6bde61bb
tree25d5b0eb0e64408f08bf764210939cf2701a510c
parent47b735be25ceeeca8ab6bbee05c484e10b93073b
LU-10186 osd-zfs: move LAST_ID OI mapping out of oi.xx

Originally, the OI mapping for LAST_ID was put under the
oi.xx file, it may cause some issues:

1) If we remove the oi.xx file, then before the OI scrub
   scanned the whole device, we can not know the last ID
   for related sequence. That will fail the system start
   as to the OI scrub will be stopped by force.

2) It is incompatible with ldiskfs backend, that will cause
   trouble after migrating from ldiskfs-based device.

This patch moves the LAST_ID OI mapping from oi.xx file to
/O/<seq>/LAST_ID as ldiskfs backend does.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ibfef1d9ef5be72f6e04ff79f92302483f7fe8a15
Reviewed-on: https://review.whamcloud.com/28679
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_oi.c