summaryrefslogtreecommitdiff
path: root/src/basic/missing.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-15 18:37:03 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-15 18:37:03 +0200
commit3f952f92b9f401fbe4c4876541ca145a551df039 (patch)
treea1adba9a06f36e2a0ad5e2661ceac30d7b0983ba /src/basic/missing.h
parent19833db683c1e197718f00d1d5cb4827ee7897d8 (diff)
btrfs: always remove the per-subvol qgroup when removing a subvol
btrfs doesn't do that automatically, hence let's do that explicitly each time.
Diffstat (limited to 'src/basic/missing.h')
-rw-r--r--src/basic/missing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h
index 59e835a466..8d11b80d95 100644
--- a/src/basic/missing.h
+++ b/src/basic/missing.h
@@ -248,6 +248,10 @@ static inline int getrandom(void *buffer, size_t count, unsigned flags) {
#define BTRFS_SEARCH_ARGS_BUFSIZE (4096 - sizeof(struct btrfs_ioctl_search_key))
#endif
+#ifndef BTRFS_QGROUP_LEVEL_SHIFT
+#define BTRFS_QGROUP_LEVEL_SHIFT 48
+#endif
+
#ifndef HAVE_LINUX_BTRFS_H
struct btrfs_ioctl_vol_args {
int64_t fd;