Whamcloud - gitweb
LU-8138 utils: misc fixes in wirecheck 89/20189/3
authorHenri Doreau <henri.doreau@cea.fr>
Fri, 13 May 2016 11:19:46 +0000 (13:19 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:54:35 +0000 (03:54 +0000)
Include required headers that were missing.
Fix structure field name that has been embedded into an union.

Signed-off-by: Henri Doreau <henri.doreau@cea.fr>
Change-Id: If87d673ffbe9ccdd965c77161dfc69ed9e983fc3
Reviewed-on: http://review.whamcloud.com/20189
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
lustre/utils/wirecheck.c

index 2e6d50f..4eb1638 100644 (file)
  */
 
 #include <stdio.h>
+#include <errno.h>
+#include <string.h>
 #include <unistd.h>
+#include <limits.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <lustre/lustre_idl.h>
@@ -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}