xfs
[Top] [All Lists]

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

To: xfs@xxxxxxxxxxx
Subject: [PATCH 5/8] cleanup: define a local xfs_ino_t
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 16 Oct 2015 12:44:58 +1100
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1444959901-31319-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1444959901-31319-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 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

<Prev in Thread] Current Thread [Next in Thread>