Whamcloud - gitweb
LU-14668 lnet: add 'force' option to lnetctl peer del 49/50149/4
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Mon, 27 Feb 2023 23:41:19 +0000 (15:41 -0800)
committerSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 7 Mar 2023 02:39:24 +0000 (18:39 -0800)
commit05f7f6a0ba637cd9dd7bc0e038fdaf7ae1dbc70e
tree7c6e66bf2fb437592f4770cf44f6e0244531c3e6
parentabfb77fbfee2a68410580c840a096de25095d95d
LU-14668 lnet: add 'force' option to lnetctl peer del

Add --force option to 'lnetctl peer del' command.
If the peer has primary NID locked, this option allows
for the peer to be deleted manually:
lnetctl peer del --prim_nid <nid> --force

Add --prim_lock option to 'lnetctl peer add' command.
If specified, the primary NID of the peer is locked
such that it is going to be the NID used to identify
the peer in communications with Lustre layer.

Test-Parameters: trivial
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: Ia6001856cfbce7b0c3288cff9b244b569d259647
lnet/include/lnet/lib-lnet.h
lnet/include/uapi/linux/lnet/lnet-dlc.h
lnet/lnet/api-ni.c
lnet/lnet/peer.c
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetctl.c
lustre/doc/lnetctl.8
lustre/tests/sanity-lnet.sh