Whamcloud - gitweb
LU-14797 nodemap: map project id 19/44119/9
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 30 Jun 2021 16:30:57 +0000 (18:30 +0200)
committerOleg Drokin <green@whamcloud.com>
Sun, 10 Oct 2021 03:35:06 +0000 (03:35 +0000)
commit0daeebcbdc4e89d59221299f2687cfd3c4f00b5b
treece6a60b3e3487d3398b4d686cbaa7e2f9f974dfd
parentb2503cf65a0cb3583a2f0d53f5044ae6e92b6208
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.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Id66458550d312404b1993ead8940c3d12eaadccd
Reviewed-on: https://review.whamcloud.com/44119
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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
lustre/utils/obd.c