Whamcloud - gitweb
LU-17016 mdd: no EXDEV for parent dir projid mismatch 68/51868/17
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 4 Aug 2023 05:01:42 +0000 (23:01 -0600)
committerOleg Drokin <green@whamcloud.com>
Sun, 4 Feb 2024 08:27:14 +0000 (08:27 +0000)
commit1c033467317394d18a7aa05f6e81734bcbbcac75
tree168bfc0153f66440d7d4812a30075e5f293bd77b
parent69509eb9881425cd9a789905d583ca3f86cfdaf1
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.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I7aa53f6d168926719ad9fd5df3c760e6c73ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51868
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
lustre/mdd/mdd_dir.c
lustre/tests/sanity.sh