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>
This commit is contained in:
parent
3fe58f30b4
commit
93848a999c
8 changed files with 254 additions and 77 deletions
|
@ -48,6 +48,7 @@ extern kmem_zone_t *xfs_buf_item_zone;
|
|||
#define XFS_BLF_AGF_BUF (1<<6)
|
||||
#define XFS_BLF_AGFL_BUF (1<<7)
|
||||
#define XFS_BLF_AGI_BUF (1<<8)
|
||||
#define XFS_BLF_DINO_BUF (1<<9)
|
||||
|
||||
#define XFS_BLF_TYPE_MASK \
|
||||
(XFS_BLF_UDQUOT_BUF | \
|
||||
|
@ -56,7 +57,8 @@ extern kmem_zone_t *xfs_buf_item_zone;
|
|||
XFS_BLF_BTREE_BUF | \
|
||||
XFS_BLF_AGF_BUF | \
|
||||
XFS_BLF_AGFL_BUF | \
|
||||
XFS_BLF_AGI_BUF)
|
||||
XFS_BLF_AGI_BUF | \
|
||||
XFS_BLF_DINO_BUF)
|
||||
|
||||
#define XFS_BLF_CHUNK 128
|
||||
#define XFS_BLF_SHIFT 7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue