Whamcloud - gitweb
LU-7091 mdd: refresh nlink after update linkea 36/16236/13
authorDi Wang <di.wang@intel.com>
Wed, 7 Oct 2015 04:31:53 +0000 (21:31 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 28 Oct 2015 13:48:31 +0000 (13:48 +0000)
commit14ff7815a4658d3c626d5fbdb975659966b5aee4
treec064185735f2c68fcc0d025de238b024d8b18512
parent44e9ec0b46fc46cc72bebbdc35e4a59a0397a81c
LU-7091 mdd: refresh nlink after update linkea

It should refresh nlink after update linkea, because
it might decrease the nlink of source object,
otherwise it might try to delete the stripeEA with
wrong nlink.

And also before migration, it should check if all
of the parents of the migrating object are in the
target MDT, only checking if these parents parent
are remote is not enough.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Icfb4ffc666855f0c7f35f004ecc864c422610135
Reviewed-on: http://review.whamcloud.com/16236
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdt/mdt_reint.c
lustre/tests/sanity.sh