4 #include "sparse-endian.h"
6 /* Stolen from btrfs' ctree.h */
8 struct btrfs_timespec
{
13 struct btrfs_disk_key
{
19 struct btrfs_inode_item
{
33 struct btrfs_timespec atime
;
34 struct btrfs_timespec ctime
;
35 struct btrfs_timespec mtime
;
36 struct btrfs_timespec otime
;
39 struct btrfs_root_item
{
40 struct btrfs_inode_item inode
;
49 struct btrfs_disk_key drop_progress
;
53 uint8_t uuid
[BTRFS_UUID_SIZE
];
54 uint8_t parent_uuid
[BTRFS_UUID_SIZE
];
55 uint8_t received_uuid
[BTRFS_UUID_SIZE
];
60 struct btrfs_timespec ctime
;
61 struct btrfs_timespec otime
;
62 struct btrfs_timespec stime
;
63 struct btrfs_timespec rtime
;
67 #define BTRFS_ROOT_SUBVOL_RDONLY (1ULL << 0)
69 struct btrfs_qgroup_info_item
{
77 #define BTRFS_QGROUP_LIMIT_MAX_RFER (1ULL << 0)
78 #define BTRFS_QGROUP_LIMIT_MAX_EXCL (1ULL << 1)
79 #define BTRFS_QGROUP_LIMIT_RSV_RFER (1ULL << 2)
80 #define BTRFS_QGROUP_LIMIT_RSV_EXCL (1ULL << 3)
81 #define BTRFS_QGROUP_LIMIT_RFER_CMPR (1ULL << 4)
82 #define BTRFS_QGROUP_LIMIT_EXCL_CMPR (1ULL << 5)
84 struct btrfs_qgroup_limit_item
{
92 struct btrfs_root_ref
{