summaryrefslogtreecommitdiff
path: root/extlinux/btrfs.h
blob: 39a861a59b3fd632236eec8446df09c371d75a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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