Whamcloud - gitweb
LU-11642 lmv: allocate fid on parent MDT in migrate 41/33641/3
authorLai Siyao <lai.siyao@intel.com>
Sun, 21 Oct 2018 22:48:17 +0000 (06:48 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 21 Nov 2018 04:05:56 +0000 (04:05 +0000)
commita857446dc6480841ab1e832970d3958f3962a885
tree50667e0bc6952024476de536b9b97d52556d6564
parent640ed6104453e912a5c7766d265a36a30a31761d
LU-11642 lmv: allocate fid on parent MDT in migrate

During directory migration, if the migrated file is not directory,
the target should be allocated on its parent MDT, not user specified
MDT. Because if it's parent is striped, this file should be migrated
to the MDT by its name hash, not the starting MDT of its parent.

Add sanity 230k to check file data not changed after migration.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ic7d3de8ea982b7cf4da758e4d3ab8d8ee15ecfdb
Reviewed-on: https://review.whamcloud.com/33641
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lmv/lmv_obd.c
lustre/tests/sanity.sh