aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-18 10:29:49 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commit7ae9c09d8f001eb19ee2ba219dc5c3d4f6d60614 (patch)
tree9ad3de27fec0d73f145e8e9f9dd7a89851ae85bc /fs/btrfs/ctree.h
parenta443755f1ca3e190e12e3a845ddecb3ee1782512 (diff)
Btrfs: Add support for labels in the super block
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index d119d95d139a..f00c4be59ad6 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -247,6 +247,7 @@ struct btrfs_header {
247 * room to translate 14 chunks with 3 stripes each. 247 * room to translate 14 chunks with 3 stripes each.
248 */ 248 */
249#define BTRFS_SYSTEM_CHUNK_ARRAY_SIZE 2048 249#define BTRFS_SYSTEM_CHUNK_ARRAY_SIZE 2048
250#define BTRFS_LABEL_SIZE 256
250 251
251/* 252/*
252 * the super block basically lists the main trees of the FS 253 * the super block basically lists the main trees of the FS
@@ -276,6 +277,7 @@ struct btrfs_super_block {
276 u8 root_level; 277 u8 root_level;
277 u8 chunk_root_level; 278 u8 chunk_root_level;
278 struct btrfs_dev_item dev_item; 279 struct btrfs_dev_item dev_item;
280 char label[BTRFS_LABEL_SIZE];
279 u8 sys_chunk_array[BTRFS_SYSTEM_CHUNK_ARRAY_SIZE]; 281 u8 sys_chunk_array[BTRFS_SYSTEM_CHUNK_ARRAY_SIZE];
280} __attribute__ ((__packed__)); 282} __attribute__ ((__packed__));
281 283