1 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
6 #include "sparse-endian.h"
8 /* Stolen from btrfs' ctree.h */
10 struct btrfs_timespec {
15 struct btrfs_disk_key {
21 struct btrfs_inode_item {
35 struct btrfs_timespec atime;
36 struct btrfs_timespec ctime;
37 struct btrfs_timespec mtime;
38 struct btrfs_timespec otime;
41 struct btrfs_root_item {
42 struct btrfs_inode_item inode;
51 struct btrfs_disk_key drop_progress;
55 uint8_t uuid[BTRFS_UUID_SIZE];
56 uint8_t parent_uuid[BTRFS_UUID_SIZE];
57 uint8_t received_uuid[BTRFS_UUID_SIZE];
62 struct btrfs_timespec ctime;
63 struct btrfs_timespec otime;
64 struct btrfs_timespec stime;
65 struct btrfs_timespec rtime;
69 #define BTRFS_ROOT_SUBVOL_RDONLY (1ULL << 0)
71 struct btrfs_qgroup_info_item {
79 #define BTRFS_QGROUP_LIMIT_MAX_RFER (1ULL << 0)
80 #define BTRFS_QGROUP_LIMIT_MAX_EXCL (1ULL << 1)
81 #define BTRFS_QGROUP_LIMIT_RSV_RFER (1ULL << 2)
82 #define BTRFS_QGROUP_LIMIT_RSV_EXCL (1ULL << 3)
83 #define BTRFS_QGROUP_LIMIT_RFER_CMPR (1ULL << 4)
84 #define BTRFS_QGROUP_LIMIT_EXCL_CMPR (1ULL << 5)
86 struct btrfs_qgroup_limit_item {