Whamcloud - gitweb
LU-4957 ofd: convert FID to OSTID before put it on wire 80/10580/4
authorWang Di <di.wang@intel.com>
Fri, 6 Jun 2014 09:20:55 +0000 (02:20 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Jun 2014 02:39:34 +0000 (02:39 +0000)
commit18964424cb1179b9e8ca25288eb1b71ae11e2b4c
tree968802d00e7080808fa29a9f173272572d567770
parent39f5f271f6f8297c3478390d94466ffb071e313e
LU-4957 ofd: convert FID to OSTID before put it on wire

For the compatible purpose, OFD has to convert the FID(IDIF)
to ost_id before reply to MDT(in ofd_create_hdl), because the
old MDT(<2.6) can not deal with IDIF, but only ostid.

Do not LASSERT for comparing OFD precreate fids with local
used FID, instead it will just return -ESTALE.

Change-Id: Ic35cca7a78bff2e4ca24f507a2c32666ab032579
Signed-off-by: Wang Di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/10580
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/ofd/ofd_dev.c
lustre/osp/osp_precreate.c