aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf_item.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2013-04-03 01:11:17 -0400
committerBen Myers <bpm@sgi.com>2013-04-21 16:03:33 -0400
commit93848a999cf9b9e4f4f77dba843a48c393f33c59 (patch)
tree92c2fb4e741a8d70e70f9d31df308d1a30ecaef6 /fs/xfs/xfs_buf_item.h
parent3fe58f30b4fc3f8a9084b035a02bc0c67bee8d00 (diff)
xfs: add version 3 inode format with CRCs
Add a new inode version with a larger core. The primary objective is to allow for a crc of the inode, and location information (uuid and ino) to verify it was written in the right place. We also extend it by: a creation time (for Samba); a changecount (for NFSv4); a flush sequence (in LSN format for recovery); an additional inode flags field; and some additional padding. These additional fields are not implemented yet, but already laid out in the structure. [dchinner@redhat.com] Added LSN and flags field, some factoring and rework to capture all the necessary information in the crc calculation. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.h')
-rw-r--r--fs/xfs/xfs_buf_item.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf_item.h b/fs/xfs/xfs_buf_item.h
index c25660691e08..abae8c8c4ec4 100644
--- a/fs/xfs/xfs_buf_item.h
+++ b/fs/xfs/xfs_buf_item.h
@@ -48,6 +48,7 @@ extern kmem_zone_t *xfs_buf_item_zone;
48#define XFS_BLF_AGF_BUF (1<<6) 48#define XFS_BLF_AGF_BUF (1<<6)
49#define XFS_BLF_AGFL_BUF (1<<7) 49#define XFS_BLF_AGFL_BUF (1<<7)
50#define XFS_BLF_AGI_BUF (1<<8) 50#define XFS_BLF_AGI_BUF (1<<8)
51#define XFS_BLF_DINO_BUF (1<<9)
51 52
52#define XFS_BLF_TYPE_MASK \ 53#define XFS_BLF_TYPE_MASK \
53 (XFS_BLF_UDQUOT_BUF | \ 54 (XFS_BLF_UDQUOT_BUF | \
@@ -56,7 +57,8 @@ extern kmem_zone_t *xfs_buf_item_zone;
56 XFS_BLF_BTREE_BUF | \ 57 XFS_BLF_BTREE_BUF | \
57 XFS_BLF_AGF_BUF | \ 58 XFS_BLF_AGF_BUF | \
58 XFS_BLF_AGFL_BUF | \ 59 XFS_BLF_AGFL_BUF | \
59 XFS_BLF_AGI_BUF) 60 XFS_BLF_AGI_BUF | \
61 XFS_BLF_DINO_BUF)
60 62
61#define XFS_BLF_CHUNK 128 63#define XFS_BLF_CHUNK 128
62#define XFS_BLF_SHIFT 7 64#define XFS_BLF_SHIFT 7