Whamcloud - gitweb
LU-13437 llite: pass name in getattr by FID 19/40219/6
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 12 Oct 2020 14:22:07 +0000 (22:22 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Oct 2020 04:30:44 +0000 (04:30 +0000)
commit90ebab5833007defd91e86f5878f356ae5304a1b
treec7ac38234b5a7b38cfbd7074acc794bb557ceb92
parent72a1ca996e3a35ce3e4b7e517f77ff7ac83ccdd5
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.

Fixes: 5f2c44bf6 ("LU-13437 llite: pack parent FID in getattr")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: If8215667bcb10ea3c4c5cd2c9034d81fd1cda3b5
Reviewed-on: https://review.whamcloud.com/40219
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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