From: Nathan Scott Date: Thu, 5 Aug 2004 05:45:20 +0000 (+0000) Subject: Add knowledge to xfs_db about the realtime inheritence bit. X-Git-Tag: v2.7.0~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ebdd9126b1a770010850394aec5fc10ffc671ab;p=thirdparty%2Fxfsprogs-dev.git Add knowledge to xfs_db about the realtime inheritence bit. --- diff --git a/db/inode.c b/db/inode.c index 604cea191..6302dde86 100644 --- a/db/inode.c +++ b/db/inode.c @@ -137,6 +137,9 @@ const field_t inode_core_flds[] = { { "nodump", FLDT_UINT1, OI(COFF(flags) + bitsz(__uint16_t) - XFS_DIFLAG_NODUMP_BIT - 1), C1, 0, TYP_NONE }, + { "rtinherit", FLDT_UINT1, + OI(COFF(flags) + bitsz(__uint16_t) - XFS_DIFLAG_RTINHERIT_BIT-1), C1, + 0, TYP_NONE }, { "gen", FLDT_UINT32D, OI(COFF(gen)), C1, 0, TYP_NONE }, { NULL } }; diff --git a/doc/CHANGES b/doc/CHANGES index 53cbe14e4..e6a90709e 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,3 +1,6 @@ +[cvs] + - Support realtime bit inheritance on directories. + xfsprogs-2.6.20 (28 July 2004) - Fix a segfault on xfs_io open error path for non-XFS files. Thanks to Steinar H. Gunderson for this fix. diff --git a/include/xfs_dinode.h b/include/xfs_dinode.h index e0b529b33..a8f9b42df 100644 --- a/include/xfs_dinode.h +++ b/include/xfs_dinode.h @@ -456,6 +456,7 @@ xfs_dinode_t *xfs_buf_to_dinode(struct xfs_buf *bp); #define XFS_DIFLAG_SYNC_BIT 5 /* inode is written synchronously */ #define XFS_DIFLAG_NOATIME_BIT 6 /* do not update atime */ #define XFS_DIFLAG_NODUMP_BIT 7 /* do not dump */ +#define XFS_DIFLAG_RTINHERIT_BIT 8 /* create with realtime bit set */ #define XFS_DIFLAG_REALTIME (1 << XFS_DIFLAG_REALTIME_BIT) #define XFS_DIFLAG_PREALLOC (1 << XFS_DIFLAG_PREALLOC_BIT) #define XFS_DIFLAG_NEWRTBM (1 << XFS_DIFLAG_NEWRTBM_BIT) @@ -464,5 +465,11 @@ xfs_dinode_t *xfs_buf_to_dinode(struct xfs_buf *bp); #define XFS_DIFLAG_SYNC (1 << XFS_DIFLAG_SYNC_BIT) #define XFS_DIFLAG_NOATIME (1 << XFS_DIFLAG_NOATIME_BIT) #define XFS_DIFLAG_NODUMP (1 << XFS_DIFLAG_NODUMP_BIT) +#define XFS_DIFLAG_RTINHERIT (1 << XFS_DIFLAG_RTINHERIT_BIT) + +#define XFS_DIFLAG_ANY \ + (XFS_DIFLAG_REALTIME | XFS_DIFLAG_PREALLOC | XFS_DIFLAG_NEWRTBM | \ + XFS_DIFLAG_IMMUTABLE | XFS_DIFLAG_APPEND | XFS_DIFLAG_SYNC | \ + XFS_DIFLAG_NOATIME | XFS_DIFLAG_NODUMP | XFS_DIFLAG_RTINHERIT) #endif /* __XFS_DINODE_H__ */