chain.c32, libcom32: Move read_sectors() as disk_read_sectors()
[profile/ivi/syslinux.git] / extlinux / btrfs.h
1 #ifndef _BTRFS_H_
2 #define _BTRFS_H_
3
4 #define BTRFS_SUPER_MAGIC 0x9123683E
5 #define BTRFS_SUPER_INFO_OFFSET (64 * 1024)
6 #define BTRFS_SUPER_INFO_SIZE 4096
7 #define BTRFS_MAGIC "_BHRfS_M"
8 #define BTRFS_CSUM_SIZE 32
9 #define BTRFS_FSID_SIZE 16
10
11 struct btrfs_super_block {
12         unsigned char csum[BTRFS_CSUM_SIZE];
13         /* the first 3 fields must match struct btrfs_header */
14         unsigned char fsid[BTRFS_FSID_SIZE];    /* FS specific uuid */
15         u64 bytenr; /* this block number */
16         u64 flags;
17
18         /* allowed to be different from the btrfs_header from here own down */
19         u64 magic;
20 } __attribute__ ((__packed__));
21
22 #endif