Whamcloud - gitweb
LU-4263 osd-zfs: Avoid converting last ID FIDs to OST IDs 01/8301/4
authorLi Wei <wei.g.li@intel.com>
Fri, 30 Aug 2013 07:12:40 +0000 (15:12 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 17 Jan 2014 01:32:24 +0000 (01:32 +0000)
commit74f4d7b3f173674af8d05ab445f0bb11b557c20e
tree900f4dad12d4e3fa73ca2e737d6a8f6a96a77412
parent0046eb8f66e906648dd0695fa7d6edfa6f301485
LU-4263 osd-zfs: Avoid converting last ID FIDs to OST IDs

When obdfilter-survey first creates an object on a fresh ZFS OST, the
last ID object for FID_SEQ_ECHO has to be created in the first place.
The last ID FID, [FID_SEQ_ECHO:0:0], can not be converted to an OST ID
because the resulting OST ID would be indistinguishable from an
FID_SEQ_OST_MDT0 OST ID and would confuse ostid_id().  This patch
checks for last ID FIDs before converting them to OST IDs in
osd_get_idx_for_ost_obj().

Change-Id: I96cdf85b4725e4882cecabaf90466c7f77a5e0a6
Intel-bug-id: FF-182
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/8301
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-zfs/osd_oi.c