Whamcloud - gitweb
LU-4684 migrate: shrink dir layout after migration 26/31626/22
authorLai Siyao <lai.siyao@intel.com>
Thu, 8 Mar 2018 03:24:31 +0000 (11:24 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 17 Sep 2018 04:05:31 +0000 (04:05 +0000)
commit0a83d948f37bec7fca6e9aa30f59f26354273b23
tree8c22bf045692725649986c8c1164e7d7e3421cf0
parent169738e30a7e0b57f27a517d78d2c928b3bb0f5c
LU-4684 migrate: shrink dir layout after migration

Use setxattr(XATTR_NAME_LMV) to shrink dir layout after migration,
this may change dir fid because it may shrink dir to 1-stripe, if so
replace this dir with its stripe.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I4fd3e83e188ac0c6c4845183c17701276fae94a8
Reviewed-on: https://review.whamcloud.com/31626
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_object.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_object.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_reint.c
lustre/mdt/mdt_xattr.c
lustre/utils/liblustreapi.c