Whamcloud - gitweb
LU-17016 mdd: no EXDEV for parent dir projid mismatch
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 4 Aug 2023 05:01:42 +0000 (23:01 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 14 Feb 2024 19:18:11 +0000 (19:18 +0000)
commit35736622f166b400abf74f1a3225de57d34b93be
tree09b3058641c7947bc62bca07877313da52b35b4b
parent0a2c722ca8c5123b9b60b61bb8cbc5b94b4e291e
LU-17016 mdd: no EXDEV for parent dir projid mismatch

Don't return EXDEV if the parent directory projid of a renamed
directory does not match the projid of the target dir.  Only the
projid of the source directory itself and the target matter.

Rename variables in mdd_rename_sanity_check() and mdd_rename()
so the object and attribute variable names are consistent.

Improve console error messages to contain more useful information.
Replace spaces with tabs in affected functions.

Lustre-change: https://review.whamcloud.com/51868
Lustre-commit: 1c033467317394d18a7aa05f6e81734bcbbcac75

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I7aa53f6d168926719ad9fd5df3c760e6c73ebbe5
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53965
Tested-by: jenkins <devops@whamcloud.com>
lustre/mdd/mdd_dir.c
lustre/tests/sanity.sh [changed mode: 0755->0644]