summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason2008-04-18 16:29:49 +0200
committerChris Mason2008-09-25 17:04:02 +0200
commit7ae9c09d8f001eb19ee2ba219dc5c3d4f6d60614 (patch)
tree9ad3de27fec0d73f145e8e9f9dd7a89851ae85bc /fs/btrfs/ctree.h
parentBtrfs: Check device uuids along with devids (diff)
downloadkernel-qcow2-linux-7ae9c09d8f001eb19ee2ba219dc5c3d4f6d60614.tar.gz
kernel-qcow2-linux-7ae9c09d8f001eb19ee2ba219dc5c3d4f6d60614.tar.xz
kernel-qcow2-linux-7ae9c09d8f001eb19ee2ba219dc5c3d4f6d60614.zip
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 {
* room to translate 14 chunks with 3 stripes each.
*/
#define BTRFS_SYSTEM_CHUNK_ARRAY_SIZE 2048
+#define BTRFS_LABEL_SIZE 256
/*
* the super block basically lists the main trees of the FS
@@ -276,6 +277,7 @@ struct btrfs_super_block {
u8 root_level;
u8 chunk_root_level;
struct btrfs_dev_item dev_item;
+ char label[BTRFS_LABEL_SIZE];
u8 sys_chunk_array[BTRFS_SYSTEM_CHUNK_ARRAY_SIZE];
} __attribute__ ((__packed__));