From: Henri Doreau Date: Fri, 13 May 2016 11:19:46 +0000 (+0200) Subject: LU-8138 utils: misc fixes in wirecheck X-Git-Tag: 2.8.55~30 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=1969e0eb204cefbf5645221cc84ad6209ffa3a9c LU-8138 utils: misc fixes in wirecheck Include required headers that were missing. Fix structure field name that has been embedded into an union. Signed-off-by: Henri Doreau Change-Id: If87d673ffbe9ccdd965c77161dfc69ed9e983fc3 Reviewed-on: http://review.whamcloud.com/20189 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Yang Sheng --- diff --git a/lustre/utils/wirecheck.c b/lustre/utils/wirecheck.c index 2e6d50f..4eb1638 100644 --- a/lustre/utils/wirecheck.c +++ b/lustre/utils/wirecheck.c @@ -35,7 +35,11 @@ */ #include +#include +#include #include +#include +#include #include #include #include @@ -1833,7 +1837,7 @@ check_getinfo_fid2path(void) CHECK_MEMBER(getinfo_fid2path, gf_recno); CHECK_MEMBER(getinfo_fid2path, gf_linkno); CHECK_MEMBER(getinfo_fid2path, gf_pathlen); - CHECK_MEMBER(getinfo_fid2path, gf_path[0]); + CHECK_MEMBER(getinfo_fid2path, gf_u.gf_path[0]); } /* We don't control the definitions of posix_acl_xattr_{entry,header}