Whamcloud - gitweb
LU-13437 llite: pass name in getattr by FID 82/40482/2
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 12 Oct 2020 14:22:07 +0000 (22:22 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Nov 2020 04:15:59 +0000 (04:15 +0000)
commit18578808ff0fc19f16a654f2afb2dc4c70872ef6
tree78802bcff443ef8d0bdeef1f539671aa3ef62302
parent23c05e821da13c6942453be1c9e167c5cafc40e7
LU-13437 llite: pass name in getattr by FID

Now parent FID is packed in getattr_by_FID request
(see https://review.whamcloud.com/39290), it should also pass in name
from llite, so that lmv can replace fid1 with stripe FID, otherwise
MDS may treat sub files under striped directory as remote object.

Note, the name is not packed in request, because if it's packed, MDS
will getattr by name instead of FID.

Lustre-change: https://review.whamcloud.com/40219
Lustre-commit: 90ebab5833007defd91e86f5878f356ae5304a1b

Fixes: 5f2c44bf6 ("LU-13437 llite: pack parent FID in getattr")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: If8215667bcb10ea3c4c5cd2c9034d81fd1cda3b5
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/40482
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/obd.h
lustre/llite/file.c
lustre/llite/llite_lib.c
lustre/lmv/lmv_intent.c
lustre/lmv/lmv_obd.c