Whamcloud - gitweb
LU-12511 utils: fix regression for UAPI headers for native client 03/47803/6
authorJames Simmons <jsimmons@infradead.org>
Mon, 27 Jun 2022 15:24:19 +0000 (11:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Aug 2022 19:52:53 +0000 (19:52 +0000)
A patch landed to add wiretest for the GSS wire protocol which is
lacking for the native client. Add disabling the new test code
for the native Linux client build.

Test-Parameters: trivial
Fixes: 7dfbc71350 ("LU-9243 gss: fix GSS struct definition badness")
Change-Id: I31c387b757a77f4503b923c784911afc16c878a0
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/47803
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/wiretest.c

index 2b20a38..4ee1ad5 100644 (file)
@@ -5233,6 +5233,7 @@ void lustre_assert_wire_constants(void)
        LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_archive_id) == 4, "found %lld\n",
                 (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_archive_id));
 
+#ifndef HAVE_NATIVE_LINUX_CLIENT
        /* Checks for struct netobj_s */
        LASSERTF((int)sizeof(struct netobj_s) == 4, "found %lld\n",
                 (long long)(int)sizeof(struct netobj_s));
@@ -5424,6 +5425,7 @@ void lustre_assert_wire_constants(void)
                 (long long)(int)offsetof(struct gss_wire_ctx, gw_handle));
        LASSERTF((int)sizeof(((struct gss_wire_ctx *)0)->gw_handle) == 16, "found %lld\n",
                 (long long)(int)sizeof(((struct gss_wire_ctx *)0)->gw_handle));
+#endif /* !HAVE_NATIVE_LINUX_CLIENT */
 
 #ifdef HAVE_SERVER_SUPPORT