Whamcloud - gitweb
LU-17367 utils: improved hostname and IPv6 NID support 06/55706/9
authorMaximilian Dilger <mdilger@whamcloud.com>
Thu, 11 Jul 2024 19:07:17 +0000 (15:07 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Jul 2024 04:42:34 +0000 (04:42 +0000)
commit63014195091532430a4155d3b2cd72b3a1b02dee
treec6276ed871e48fc38ff3945e48f88ad368f0963d
parent652032d6c18caffc0782d49e5d5e373010f2bc61
LU-17367 utils: improved hostname and IPv6 NID support

Improved NID parsing to accept hostnames, IPv4 and IPv6 addresses.
IPv6 addresses need @network to be parsed properly. The following
is a valid IPv6 address: "6699:7654::1234:1234:d84@tcp"

All other non IPv6 addresses can be passed in without a network
identifier.

Signed-off-by: Maximilian Dilger <mdilger@whamcloud.com>
Change-Id: I131c8b2d1f7b0fe593564af90308d2d3ea278a0c
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55706
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
lustre/tests/conf-sanity.sh
lustre/utils/mount_utils.c
lustre/utils/mount_utils.h