1 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
5 #include "sparse-endian.h"
7 /* Stolen from btrfs' ctree.h */
9 struct btrfs_timespec {
14 struct btrfs_disk_key {
20 struct btrfs_inode_item {
34 struct btrfs_timespec atime;
35 struct btrfs_timespec ctime;
36 struct btrfs_timespec mtime;
37 struct btrfs_timespec otime;
40 struct btrfs_root_item {
41 struct btrfs_inode_item inode;
50 struct btrfs_disk_key drop_progress;
54 uint8_t uuid[BTRFS_UUID_SIZE];
55 uint8_t parent_uuid[BTRFS_UUID_SIZE];
56 uint8_t received_uuid[BTRFS_UUID_SIZE];
61 struct btrfs_timespec ctime;
62 struct btrfs_timespec otime;
63 struct btrfs_timespec stime;
64 struct btrfs_timespec rtime;
68 #define BTRFS_ROOT_SUBVOL_RDONLY (1ULL << 0)
70 struct btrfs_qgroup_info_item {
78 #define BTRFS_QGROUP_LIMIT_MAX_RFER (1ULL << 0)
79 #define BTRFS_QGROUP_LIMIT_MAX_EXCL (1ULL << 1)
80 #define BTRFS_QGROUP_LIMIT_RSV_RFER (1ULL << 2)
81 #define BTRFS_QGROUP_LIMIT_RSV_EXCL (1ULL << 3)
82 #define BTRFS_QGROUP_LIMIT_RFER_CMPR (1ULL << 4)
83 #define BTRFS_QGROUP_LIMIT_EXCL_CMPR (1ULL << 5)
85 struct btrfs_qgroup_limit_item {