Whamcloud - gitweb
LU-17431 utils: add 'dynamic' parameter to nodemap_cmd 03/54503/10
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 20 Mar 2024 08:05:41 +0000 (09:05 +0100)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Apr 2024 06:55:27 +0000 (06:55 +0000)
commitfecc3bd4e2042e3b0cd701b3b2a6b3bce21acad6
tree799ddbdfeb8113d359dcca4e00bc6ec5b135a4d4
parentc5d08e0af6ce819b818a0d9917a41d99899bab67
LU-17431 utils: add 'dynamic' parameter to nodemap_cmd

Adding a 'dynamic' parameter to nodemap_cmd() will enable
'lctl nodemap_*' commands to handle dynamic nodemaps, i.e.
nodemaps created directly on MDS/OSS side, and stored in memory.

If both MDT and OST are running on the same node, the MDS device
is used for the ioctl.  It doesn't matter which one is actually
used, since it gets to the same place in ptlrpc anyway, it just
needs to find a valid OBD device to run the ioctl.

Test-Parameters: trivial
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Id58199e1ad6622aad896737604c0a8e1287ba34e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54503
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/obd.c