Whamcloud - gitweb
LU-11631 mdd: migrate symlink for cross-MDT rename 97/39897/3
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 9 Sep 2020 21:50:11 +0000 (05:50 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Oct 2020 04:47:57 +0000 (04:47 +0000)
commit9adc02c016d2c0c1211274cb407637f9b49b4e09
tree3cbaf4c979dbf222cc5c67eb40bc03b669fefbdd
parent24e3b5395bc61333a32b1e9725a0d7273925ef05
LU-11631 mdd: migrate symlink for cross-MDT rename

If symlink rename is cross MDTs, it's ineffective to turn this
symlink into a remote object, instead migrate it to where target
MDT is. The following changes are made:
* change migration code to allow source and target have different
  name.
* if symlink is renamed to other MDT, and it doesn't have other
  hard link and target doesn't exist, migrate it to target MDT.
* remove mdd_rename_order() which is obsolete.

Add sanity 24G.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ib5fafe3122172ac582bbcc907c72a9f391baf0e1
Reviewed-on: https://review.whamcloud.com/39897
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
lustre/mdd/mdd_dir.c
lustre/tests/sanity.sh