Whamcloud - gitweb
LU-14797 nodemap: map project id
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 30 Jun 2021 16:30:57 +0000 (18:30 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 10 Nov 2021 16:00:04 +0000 (16:00 +0000)
commitd5e405d1168dc48504d031facd5a43b036e8776e
tree7bec37979a879db5f20386bd3b53aabacde24c9d
parent491f101042a4db64884ffbd402be75a21464833d
LU-14797 nodemap: map project id

Add calls to nodemap_map_id() in order to map project IDs from
client ID to server ID and conversely.
Also extend nodemap_can_setquota() to allow setquota on project
only if ID is not squashed or deny_unknown is not set.
Update sanity-sec test_27a to exercise the feature.

Lustre-change: https://review.whamcloud.com/44119
Lustre-commit: 0daeebcbdc4e89d59221299f2687cfd3c4f00b5b

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Id66458550d312404b1993ead8940c3d12eaadccd
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45487
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lustre_nodemap.h
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_io.c
lustre/mdt/mdt_lib.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_io.c
lustre/ptlrpc/nodemap_handler.c
lustre/target/tgt_handler.c
lustre/tests/sanity-sec.sh
lustre/utils/lfs.c