Whamcloud - gitweb
LU-18524 utils: Improve lctl nodemap_modify interface 48/57448/8
authorMarc Vef <mvef@whamcloud.com>
Sun, 15 Dec 2024 18:21:13 +0000 (19:21 +0100)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Mar 2025 04:00:12 +0000 (04:00 +0000)
commit8fbbd05c0eaf59bd0aa398b94e8c8ab9d4fe8335
tree22d1023a1f8c68c1af3dd4de0cade81e6370d3f1
parentb85d28309764e9988005a8e98cfd4ffd900c090c
LU-18524 utils: Improve lctl nodemap_modify interface

"lctl nodemap_modify" uses two separate parameters for the property
name and the corresponding value. This patch slightly improves this
interface by allowing "=value" as part of --property similar to "lctl
set_param" commands:

lctl nodemap_modify --name nm_0 --property admin=1

instead of (which is still allowed):

lctl nodemap_modify --name nm_0 --property admin --value 1

sanity-sec fileset_test_setup() was modified to exercise this
interface.

Test-Parameters: trivial testlist=sanity-sec
Signed-off-by: Marc Vef <mvef@whamcloud.com>
Change-Id: I030e1602a67c066e6daf4187589a77c1b49ee855
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57448
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/lctl-nodemap-modify.8
lustre/tests/sanity-sec.sh
lustre/utils/lctl.c
lustre/utils/obd.c