[PATCH 5/8] cleanup: define a local xfs_ino_t

Dave Chinner david at fromorbit.com
Thu Oct 15 20:44:58 CDT 2015


From: Dave Chinner <dchinner at redhat.com>

The xfs inode number size is never going to change - it's a
uint64_t. We currently inherit this from xfsprogs headers, but it
goes away in xfsprogs v4.2.0 as it's part of the platform
definitions. Add our own local definition for this type.

Signed-off-by: Dave Chinner <dchinner at redhat.com>
---
 common/types.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/types.h b/common/types.h
index 235f52a..0923897 100644
--- a/common/types.h
+++ b/common/types.h
@@ -49,6 +49,8 @@ typedef unsigned long u_long_t;
 typedef size_t ix_t;
 typedef int32_t time32_t;
 
+typedef uint64_t xfs_ino_t;
+
 /* limits
  */
 #define	MKMAX( t, s )	( ( t )						\
-- 
2.5.0



More information about the xfs mailing list