summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-28 19:45:38 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-28 19:45:38 -0400
commitf66f572037956a6646cc0c25975c8105d36f58d6 (patch)
tree39a57d2561192edb6ef06f580135e1da990aae98
parent03b3655fb4b0d1c4e96338a8f8c379a32ca8e071 (diff)
move csum fields around
-rw-r--r--ctree.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ctree.h b/ctree.h
index 3349281e..ae34c1d1 100644
--- a/ctree.h
+++ b/ctree.h
@@ -44,11 +44,11 @@ struct btrfs_key {
* every tree block (leaf or node) starts with this header.
*/
struct btrfs_header {
+ __le32 csum[8];
u8 fsid[16]; /* FS specific uuid */
__le64 blocknr; /* which block this node is supposed to live in */
__le64 generation;
__le64 parentid; /* objectid of the tree root */
- __le32 csum;
__le32 ham;
__le16 nritems;
__le16 flags;
@@ -68,9 +68,10 @@ struct btrfs_buffer;
* it currently lacks any block count etc etc
*/
struct btrfs_super_block {
+ /* the first 3 fields must match struct btrfs_header */
+ __le32 csum[8];
u8 fsid[16]; /* FS specific uuid */
__le64 blocknr; /* this block number */
- __le32 csum;
__le64 magic;
__le32 blocksize;
__le64 generation;