Whamcloud - gitweb
LU-18109 utils: adding nodemap offset capability 43/55943/20
authorMaximilian Dilger <mdilger@whamcloud.com>
Tue, 6 Aug 2024 19:49:28 +0000 (13:49 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:47:23 +0000 (20:47 +0000)
commite3051ad0f1c8c3399c33eaf7cb0cc906177f7891
tree608fa3f201999fb039ddcb97b9ebf6a7af2ddcc1
parentcc7d9d04d6ce48e1088cf9c5096b6632a964526a
LU-18109 utils: adding nodemap offset capability

nodemap offset: the ability to add an offset range to nodemaps.
When an offset is defined, idmaps can only be set inside of their
given range. This is defined as:

lctl nodemap_add_offset --name nodemap --offset 100000 --limit 99999

And removed as:

lctl nodemap_del_offset --name nodemap

Test sanity-sec 27ab is added to exercise this new feature.

Signed-off-by: Maximilian Dilger <mdilger@whamcloud.com>
Change-Id: Iba2116d21bc7de1ba03111b0313427301e4b0b50
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55943
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>
19 files changed:
lustre/doc/Makefile.am
lustre/doc/lctl-nodemap-add-offset.8 [new file with mode: 0644]
lustre/doc/lctl-nodemap-del-offset.8 [new file with mode: 0644]
lustre/doc/lctl.8
lustre/include/lustre_nodemap.h
lustre/include/uapi/linux/lustre/lustre_cfg.h
lustre/include/uapi/linux/lustre/lustre_disk.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/ptlrpc/nodemap_handler.c
lustre/ptlrpc/nodemap_internal.h
lustre/ptlrpc/nodemap_lproc.c
lustre/ptlrpc/nodemap_storage.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity-sec.sh
lustre/utils/lctl.c
lustre/utils/obd.c
lustre/utils/obdctl.h
lustre/utils/wirecheck.c
lustre/utils/wiretest.c