Whamcloud - gitweb
LU-9088 osd: use od_is_ost check OST FID 30/25330/2
authorwangdi <di.wang@intel.com>
Thu, 15 Dec 2016 21:06:43 +0000 (16:06 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 30 Mar 2017 03:53:57 +0000 (03:53 +0000)
commit409ea6eb8a242c671432604c34928e114c9ba8aa
treefebebf7f85e016bf99efcf241918e7aff9c3f9bf
parent3344e648236778565a8838ca85c655446ee7028c
LU-9088 osd: use od_is_ost check OST FID

Because OST FLDB is not created until 2.6, so
if the DNE system is upgraded from 2.5 to >=
2.6, then the local FLDB will not be loaded
in fld_index_init(), which might cause OSD
can not tell OST FID created by 2.5. So let's
use od_is_ost in this case.

Change-Id: I5da3e95bc24e43aca1b3c840df427cc5a7306194
Signed-off-by: wangdi <di.wang@intel.com>
Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-on: https://review.whamcloud.com/25330
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_oi.c
lustre/osd-zfs/osd_oi.c