Whamcloud - gitweb
LU-4684 migrate: replace PFID via source 24/33324/2
authorLai Siyao <lai.siyao@intel.com>
Fri, 31 Aug 2018 11:47:12 +0000 (19:47 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 29 Oct 2018 15:58:11 +0000 (15:58 +0000)
commitbd596fbe449f4fbab18ed184ccce1e141928b116
tree109e6449b22448fd59fdcc63425cd8a02472ab33
parentfef1020406a0fb99ebb7871d7648bfad7a9d91a6
LU-4684 migrate: replace PFID via source

In directory migration, when it needs to update OST object PFID,
it should always do via source object, because target object may
be remote. And in this case, lod_obj_stripe_replace_parent_fid_cb()
doesn't compare parent FID with that in XATTR_NAME_FID, but set
with the passed in FID directly.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Icd7f6521ecac43cfeaee3e61e662d94115d63d68
Reviewed-on: https://review.whamcloud.com/33324
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_internal.h
lustre/lod/lod_object.c
lustre/mdd/mdd_dir.c