Whamcloud - gitweb
LU-17713 mdd: validate the length of mdd append_pool name 91/54691/6
authorEmoly Liu <emoly@whamcloud.com>
Wed, 10 Apr 2024 09:18:03 +0000 (09:18 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Apr 2024 19:57:18 +0000 (19:57 +0000)
commit509a7cf9778968f796794c3743e62bc6b2a71592
tree11122ce58d99ae08162e8ef29cb2e7cef1c1b7d6
parent8be19078a0cc32545d16a4735dca7f7c99cbe49d
LU-17713 mdd: validate the length of mdd append_pool name

Validate the length of mdd append_pool name (<= LOV_MAXPOOLNAME)
before saving it in function append_pool_store().
Also, sanity.sh test_27M is improved a little to verify this fix.

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Change-Id: Id7083fab60e9a18af4d8eedfa3d55f37544ba15d
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54691
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
lustre/mdd/mdd_lproc.c
lustre/tests/sanity.sh