Whamcloud - gitweb
LU-17922 utils: added idmap range functionality 02/55502/11
authorMaximilian Dilger <mdilger@whamcloud.com>
Thu, 20 Jun 2024 20:09:15 +0000 (16:09 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Jul 2024 04:41:51 +0000 (04:41 +0000)
commit8445f7b92f067346919069bcf9a268d41c52c5b3
treeb921dcf0bb5a9d9a7d8c62301111f69bce69e5c0
parentecdcaa398668291dcfad26c4e21745dbfee19bc4
LU-17922 utils: added idmap range functionality

Added the ability to a declare a range when adding idmaps to a
nodemap. The syntax is:
 <clientid_start>-<clientid_end>:<fsid_start>[-<fsid_end>]

The uid_end value is optional. In practice this looks like:

nodemap_add_idmap --name test --idtype uid --idmap 500-510:10000

It is also now possible to delete idmap ranges with the
nodemap_del_idmap command as well with the same syntax.

Signed-off-by: Maximilian Dilger <mdilger@whamcloud.com>
Change-Id: If6a2b9ab11f7d435a6854055001e6102aac43115
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55502
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
lustre/include/lustre_nodemap.h
lustre/ptlrpc/nodemap_handler.c
lustre/tests/sanity-sec.sh