From 003cd1c8dee854d1641f95cd7441a2c408e03c62 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Sat, 19 Mar 2022 01:43:31 +0900 Subject: [PATCH] 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. Lustre-change: https://review.whamcloud.com/46870 Lustre-commit: TBD (a774ea01a7ffdf177a0229d9794376bddcb9ab57) --- lustre/include/lustre_nodemap.h | 1 + 2 files changed, 3 insertions(+) diff --git a/lustre/include/lustre_nodemap.h b/lustre/include/lustre_nodemap.h index 17306a586b..1a47e82032 100644 --- a/lustre/include/lustre_nodemap.h +++ b/lustre/include/lustre_nodemap.h @@ -53,6 +53,7 @@ enum nodemap_tree_type { }; enum nodemap_mapping_modes { + NODEMAP_MAP_BOTH_LEGACY = 0x0, /* for compatibility */ NODEMAP_MAP_UID = 0x01, NODEMAP_MAP_GID = 0x02, NODEMAP_MAP_BOTH = 0x03, /* for compatibility */ -- 2.28.0