Whamcloud - gitweb
LU-18182 lctl: Handle fault when issuing 'lctl net' cmd 05/56205/3
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Fri, 30 Aug 2024 07:24:14 +0000 (03:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 8 Sep 2024 16:05:50 +0000 (16:05 +0000)
commitd309f6247a6628e28931bc781170bf8c8109c6ed
tree8391a2682fea1efef559c441264d1a191187abef
parentf155c9c2c1386048319448e3ad140509d79803a9
LU-18182 lctl: Handle fault when issuing 'lctl net' cmd

'lctl net' command whithout arguments should dump
usage message and not fault.

After patch:
$ lctl net
configure LNET
usage: net [Network] <up|down> [-l]
  -l: Override existing, else it will create new

Before patch:
$ lctl net
Segmentation fault (core dumped)

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I7c885032d8b5493bcadc35062047a3e0a5a1e48f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56205
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lctl.c
lustre/utils/portals.c