Whamcloud - gitweb
LU-14405 mdt: read LMV with mdt_stripe_get() 52/41452/3
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 9 Feb 2021 14:09:09 +0000 (22:09 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Mar 2021 18:55:29 +0000 (18:55 +0000)
commit9dbfa36d3dd2434cfcffa13f76beb89fa3516586
tree4323cdd690f8f7dd9fa926e84acca79f9468dfcb
parent173bccd140adf69ce08c20810a69e783c8c12595
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.

Test-Parameters: mdtcount=8
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I1ed78f7a7f951fa5984e604a8773143a70b419e7
Reviewed-on: https://review.whamcloud.com/41452
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_handler.c