Whamcloud - gitweb
LU-16026 llite: always enable remote subdir mount 35/48535/7
authorLai Siyao <lai.siyao@whamcloud.com>
Sun, 28 Aug 2022 19:33:29 +0000 (15:33 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 17 Jan 2023 14:25:27 +0000 (14:25 +0000)
commit6f490275b0e0455a431707775d685fb3df1d322d
tree7b5a0eff55c2347c9a57df33291f56141a886935
parent601ed56575a304c15ccb6d98a252162e64ef95e9
LU-16026 llite: always enable remote subdir mount

For historical reason, ROOT is revalidated with IT_LOOKUP in
.permission to ensure permission is update to date because ROOT is
never looked up. But ROOT FID and layout is not changeable, it's
PERM lock that should be revalidated, i.e., revalidate with
IT_GETATTR instead of IT_LOOKUP.

Since PERM|UPDATE lock is on the MDT where object is located, client
can cache this lock, therefore remote subdir mount doesn't need to
lookup ROOT in each file access.

Deprecate mdt.*.enable_remote_subdir_mount.

Per http://review.whamcloud.com/19195, replace 'df' with 'lfs df' in
sanity 228b since the former doesn't support transparent recovery.

Add sanity 247h.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I66f8ee347f6c01a8a154245b10a1d93539ea13b8
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48535
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lproc.c
lustre/tests/sanity.sh