summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/extlinux/btrfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/extlinux/btrfs.h')
-rw-r--r--contrib/syslinux-4.02/extlinux/btrfs.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/extlinux/btrfs.h b/contrib/syslinux-4.02/extlinux/btrfs.h
new file mode 100644
index 0000000..39a861a
--- /dev/null
+++ b/contrib/syslinux-4.02/extlinux/btrfs.h
@@ -0,0 +1,22 @@
+#ifndef _BTRFS_H_
+#define _BTRFS_H_
+
+#define BTRFS_SUPER_MAGIC 0x9123683E
+#define BTRFS_SUPER_INFO_OFFSET (64 * 1024)
+#define BTRFS_SUPER_INFO_SIZE 4096
+#define BTRFS_MAGIC "_BHRfS_M"
+#define BTRFS_CSUM_SIZE 32
+#define BTRFS_FSID_SIZE 16
+
+struct btrfs_super_block {
+ unsigned char csum[BTRFS_CSUM_SIZE];
+ /* the first 3 fields must match struct btrfs_header */
+ unsigned char fsid[BTRFS_FSID_SIZE]; /* FS specific uuid */
+ u64 bytenr; /* this block number */
+ u64 flags;
+
+ /* allowed to be different from the btrfs_header from here own down */
+ u64 magic;
+} __attribute__ ((__packed__));
+
+#endif