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>
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,
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
#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>