Whamcloud - gitweb
LU-16739 uapi: restore LUSTRE_NODEMAP_NAME_LENGTH in lustre_disk.h 08/53208/4
authorJames Simmons <jsimmons@infradead.org>
Wed, 22 Nov 2023 15:29:58 +0000 (10:29 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 13 Dec 2023 12:23:39 +0000 (12:23 +0000)
sanity test 400b fails with:

lustre_disk.h:266:18: error: 'LUSTRE_NODEMAP_NAME_LENGTH' undeclared here (not in a function)
 char   ncr_name[LUSTRE_NODEMAP_NAME_LENGTH + 1];

This is due to the move of LUSTRE_NODEMAP_NAME_LENGTH to lustre_idl.h.
Move it back and this time add a message to avoid this in the
future.

Test-Parameters: trivial
Fixes: 8d828762d1 ("LU-17015 gss: support large kerberos token for rpc sec init")
Change-Id: I5479bbf13f26bfd3b4f6e5f7c0c1688d810fca53
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53208
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_disk.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/include/upcall_cache.h

index a097bcf..e264f27 100644 (file)
@@ -255,6 +255,11 @@ enum nodemap_idx_type {
        NODEMAP_GLOBAL_IDX = 15,        /* stores nodemap activation status */
 };
 
+/* This is needed for struct nodemap_clustre_rec. Please don't move
+ * to lustre_idl.h which will break user land builds.
+ */
+#define LUSTRE_NODEMAP_NAME_LENGTH     16
+
 /* lu_nodemap flags */
 enum nm_flag_bits {
        NM_FL_ALLOW_ROOT_ACCESS = 0x1,
index c54c4c5..de53338 100644 (file)
@@ -3727,8 +3727,6 @@ struct llog_update_record {
                                     SELINUX_POLICY_VER_LEN + \
                                     SELINUX_POLICY_HASH_LEN + 3)
 
-#define LUSTRE_NODEMAP_NAME_LENGTH     16
-
 /** enums containing the types of ids contained in a nodemap
  * kept so other modules (mgs, mdt, etc) can define the type
  * of search easily
index 84816b3..e5891aa 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <libcfs/libcfs.h>
 #include <uapi/linux/lnet/lnet-types.h>
+#include <uapi/linux/lustre/lustre_disk.h>
 #include <obd.h>
 #include <lustre_sec.h>