diff options
author | David Sterba <dsterba@suse.cz> | 2014-04-29 17:57:01 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-28 02:03:33 +0200 |
commit | da5db5596ca3dcdbc6edf3e79534c36610bf6fbb (patch) | |
tree | 5f9944db07c24c588c97b358a72188a2a1e58c51 /ctree.h | |
parent | 5f1313a45d5ed89e7bb7efab3bb7b62a42b7b30f (diff) |
btrfs-progs: read global reserve size from space infos
Kernels >= 3.15 export the global block reserve as a space info presented
by 'btrfs fi df' but would display 'unknown' instead of some meaningful
string.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -860,6 +860,12 @@ struct btrfs_csum_item { /* used in struct btrfs_balance_args fields */ #define BTRFS_AVAIL_ALLOC_BIT_SINGLE (1ULL << 48) +/* + * GLOBAL_RSV does not exist as a on-disk block group type and is used + * internally for exporting info about global block reserve from space infos + */ +#define BTRFS_SPACE_INFO_GLOBAL_RSV (1ULL << 49) + #define BTRFS_QGROUP_STATUS_OFF 0 #define BTRFS_QGROUP_STATUS_ON 1 #define BTRFS_QGROUP_STATUS_SCANNING 2 |