Whamcloud - gitweb
LU-14826 mdt: getattr_name("..") under striped directory 68/44168/5
authorLai Siyao <lai.siyao@whamcloud.com>
Thu, 8 Jul 2021 14:25:51 +0000 (10:25 -0400)
committerLai Siyao <lai.siyao@whamcloud.com>
Thu, 8 Jul 2021 14:25:51 +0000 (10:25 -0400)
commit1c4ab69260220be049645b4a38d06a671d21d752
treee9ef69cb1516c632010f223f49ff939546644fc8
parent04b2da6180d3c8eda21f7ab36c676462be041b74
LU-14826 mdt: getattr_name("..") under striped directory

For getattr_name(".."), it should return FID of the master object for
striped directories. This includes changes on both client and server:
* lmv_getattr_name() should use master object FID if it's looking up
  "..".
* mdt_raw_lookup() should check parent object is sub stripe, if so
  it needs to lookup again to get master object FID. For old client
  without above change this needs to be checked twice.

This is needed by NFS export, because ll_get_parent() find parent by
getattr_name("..").

Reenable check_fhandle_syscall and update sanityn test_102.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I72c951293e41656ce3778750147402d7f8ca4cec
lustre/lmv/lmv_obd.c
lustre/mdt/mdt_handler.c
lustre/tests/check_fhandle_syscalls.c
lustre/tests/sanityn.sh