diff options
author | Dave Chinner <dgc@sgi.com> | 2013-04-03 01:11:15 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-04-21 15:57:43 -0400 |
commit | 983d09ffe396ed5d5339a1b9ff994dd0b0f2069f (patch) | |
tree | 42779460b8910c6537bd4d53fa99f23eb5fde830 /fs/xfs/xfs_ag.h | |
parent | 77c95bba013089fa868217283eb6d98a05913e53 (diff) |
xfs: add CRC checks to the AGI
Same set of changes made to the AGF need to be made to the AGI.
This patch has a similar history to the AGF, hence a similar
sign-off chain.
Signed-off-by: Dave Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <dgc@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_ag.h')
-rw-r--r-- | fs/xfs/xfs_ag.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/xfs_ag.h b/fs/xfs/xfs_ag.h index 272ef097e2be..317aa86d96ea 100644 --- a/fs/xfs/xfs_ag.h +++ b/fs/xfs/xfs_ag.h | |||
@@ -152,6 +152,7 @@ typedef struct xfs_agi { | |||
152 | __be32 agi_root; /* root of inode btree */ | 152 | __be32 agi_root; /* root of inode btree */ |
153 | __be32 agi_level; /* levels in inode btree */ | 153 | __be32 agi_level; /* levels in inode btree */ |
154 | __be32 agi_freecount; /* number of free inodes */ | 154 | __be32 agi_freecount; /* number of free inodes */ |
155 | |||
155 | __be32 agi_newino; /* new inode just allocated */ | 156 | __be32 agi_newino; /* new inode just allocated */ |
156 | __be32 agi_dirino; /* last directory inode chunk */ | 157 | __be32 agi_dirino; /* last directory inode chunk */ |
157 | /* | 158 | /* |
@@ -159,6 +160,13 @@ typedef struct xfs_agi { | |||
159 | * still being referenced. | 160 | * still being referenced. |
160 | */ | 161 | */ |
161 | __be32 agi_unlinked[XFS_AGI_UNLINKED_BUCKETS]; | 162 | __be32 agi_unlinked[XFS_AGI_UNLINKED_BUCKETS]; |
163 | |||
164 | uuid_t agi_uuid; /* uuid of filesystem */ | ||
165 | __be32 agi_crc; /* crc of agi sector */ | ||
166 | __be32 agi_pad32; | ||
167 | __be64 agi_lsn; /* last write sequence */ | ||
168 | |||
169 | /* structure must be padded to 64 bit alignment */ | ||
162 | } xfs_agi_t; | 170 | } xfs_agi_t; |
163 | 171 | ||
164 | #define XFS_AGI_MAGICNUM 0x00000001 | 172 | #define XFS_AGI_MAGICNUM 0x00000001 |