Whamcloud - gitweb
LU-15661 nodemap: fix map mode value for 'both' 70/46870/2
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 18 Mar 2022 16:43:31 +0000 (01:43 +0900)
committerOleg Drokin <green@whamcloud.com>
Mon, 21 Mar 2022 18:48:04 +0000 (18:48 +0000)
commit4d93fd79e8b05de1065fc60abce9b0d052a92627
tree34e26c3323c8a3479052da629699ae616a116dc6
parent2f496148c31dd435681e595129834cecdaec82dc
LU-15661 nodemap: fix map mode value for 'both'

The patch that introduced the ability to map project IDs with
nodemap changed the value used for the "map both uid and gid"
case, from 0 to 3.
This poses a problem in case of upgrade from a previous Lustre
version, so re-introduce the value 0 as NODEMAP_MAP_BOTH_LEGACY.

Change-Id: I1f605de9c97faff32411da5052e8782a60645767
Fixes: 8a770616a5 ("LU-14797 sec: add projid to nodemap")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-on: https://review.whamcloud.com/46870
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_nodemap.h
lustre/ptlrpc/nodemap_storage.c