Whamcloud - gitweb
LU-12999 mgs: Cleanup string handling in name_create_mdt 21/43321/3
authorShaun Tancheff <stancheff@cray.com>
Mon, 2 Dec 2019 17:32:50 +0000 (11:32 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 29 May 2021 00:13:01 +0000 (00:13 +0000)
commitf7a59078e3c37d25b22f90e158f737e26a320b5a
treef82fc9e41b0e937a19d49a7a8b8f2db483a309d7
parentb1686f0ef0364afbf72414c439b5468b2ecb8967
LU-12999 mgs: Cleanup string handling in name_create_mdt

To satisfy gcc8 -Werror=format-overflow sanity test the mdt_idx
before calling snprintf.

Lustre-change: https://review.whamcloud.com/36817
Lustre-commit: 298cdb5c0b6136b91e76c9c515bfbc2df99bae0b

Test-Parameters: trivial
Cray-bug-id: LUS-8186
Signed-off-by: Shaun Tancheff <stancheff@cray.com>
Change-Id: I2c8764d3715290ee2bd8c96cdc98b532f50632c6
Reviewed-on: https://review.whamcloud.com/43321
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Ben Evans <beevans@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_llog.c