Whamcloud - gitweb
LU-10391 obd: Update lmd_parse to handle IPv6 NIDs 82/53882/4
authorChris Horn <chris.horn@hpe.com>
Wed, 31 Jan 2024 04:00:47 +0000 (22:00 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 13 Mar 2024 03:21:06 +0000 (03:21 +0000)
commit11d851c51c6ce3893aaea705f000680ef04737da
tree11dd2a4ed31a2321587bb7c2ea69acad8ef638d6
parente502638050a6a6c176bf921ebb3733846fd7ab87
LU-10391 obd: Update lmd_parse to handle IPv6 NIDs

lmd_find_delimiter()/lmd_parse_nidlist() are updated to handle IPv6
NIDs.

class_parse_value() is updated to handle IPv6 NIDs that begin with
'::'. Also, when parsing a Lustre network name, the buffer needn't
contain an '@', nor do we want to search for '@' when locating the
next delimiter.

Fixes: 101f6e8 ("LU-10391 obdclass: handle large NIDs for mount strings")
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: Ib9e5a0d161babfea368989dd9521d923ec592185
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53882
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount.c
lustre/osd-ldiskfs/osd_handler.c