Whamcloud - gitweb
LU-9325 obd: replace simple_strtoul() 10/49910/11
authorJames Simmons <jsimmons@infradead.org>
Sat, 29 Apr 2023 15:39:56 +0000 (11:39 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 19 May 2023 07:04:49 +0000 (07:04 +0000)
commit79b34a83f811f5f1dc40a077bd6d5f65194c9bbe
treef445f01e15366b7b2ee02cf6bec4eb4b2c3222e0
parent513b1cdbca58913249eb524a37374c418fdec44f
LU-9325 obd: replace simple_strtoul()

Replace the use of simple_strtoul() in filename_is_volatile() with
sscanf(). This change also strengthens the checking of the format
of the volatile file's name.

Remove the use of simple_strtoul() from target_name2index() as well.

Change-Id: I4bf15af00d6cecdd46eba3cca5df0fbeb473d9ce
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49910
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd.h
lustre/obdclass/obd_mount.c