Whamcloud - gitweb
LU-14405 mdt: read LMV with mdt_stripe_get()
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 9 Feb 2021 14:09:09 +0000 (22:09 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 5 May 2021 04:07:57 +0000 (04:07 +0000)
commit8927a7c2e4fcacda4755cfd90dc734fb743145fa
tree0a14ffe82ad6fdcf01cb91cfd247bd5863f6b3a3
parent50075df7f81e0f9986db81918b32ec469619eb13
LU-14405 mdt: read LMV with mdt_stripe_get()

mdt_path_current() reads LMV into mdt_thread_info.mti_xattr_buf,
whose size is static, and will return -ERANGE if LMV contains too
many stripes, instead it should call mdt_stripe_get(), the latter
will allocate dynamic memory for LMV.

Lustre-change: https://review.whamcloud.com/41452
Lustre-commit: 9dbfa36d3dd2434cfcffa13f76beb89fa3516586

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I1ed78f7a7f951fa5984e604a8773143a70b419e7
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/41966
Tested-by: jenkins <devops@whamcloud.com>
lustre/mdt/mdt_handler.c