diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2012-04-29 18:23:10 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-04-29 18:23:10 -0400 |
commit | e615391896064eb5a0c760d086b8e1c6ecfffeab (patch) | |
tree | 1d05a5e925579bc444468d88eacca00d633b8286 /fs/ext4/xattr.h | |
parent | f84891289e62a74e9b4942eaad80617368b2d778 (diff) | |
download | blackbird-op-linux-e615391896064eb5a0c760d086b8e1c6ecfffeab.tar.gz blackbird-op-linux-e615391896064eb5a0c760d086b8e1c6ecfffeab.zip |
ext4: change on-disk layout to support extended metadata checksumming
Define flags and change structure definitions to allow checksumming of
ext4 metadata.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/xattr.h')
-rw-r--r-- | fs/ext4/xattr.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h index 25b7387ff183..91f31ca7d9af 100644 --- a/fs/ext4/xattr.h +++ b/fs/ext4/xattr.h @@ -27,7 +27,9 @@ struct ext4_xattr_header { __le32 h_refcount; /* reference count */ __le32 h_blocks; /* number of disk blocks used */ __le32 h_hash; /* hash value of all attributes */ - __u32 h_reserved[4]; /* zero right now */ + __le32 h_checksum; /* crc32c(uuid+id+xattrblock) */ + /* id = inum if refcount=1, blknum otherwise */ + __u32 h_reserved[3]; /* zero right now */ }; struct ext4_xattr_ibody_header { |