71 lines
2.0 KiB
Diff
71 lines
2.0 KiB
Diff
From 4ef997dc5832f652d30eefcf67547ca029d190db Mon Sep 17 00:00:00 2001
|
|
From: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
Date: Tue, 2 Jun 2015 11:08:24 +0200
|
|
Subject: [PATCH] missing: add more btrfs defines
|
|
|
|
(cherry picked from commit d97fb4083704ce88d96fcc65ab744801909dd0b0)
|
|
---
|
|
src/shared/missing.h | 28 ++++++++++++++++++++++++++++
|
|
1 file changed, 28 insertions(+)
|
|
|
|
diff --git a/src/shared/missing.h b/src/shared/missing.h
|
|
index 9194009491..be7f6186fc 100644
|
|
--- a/src/shared/missing.h
|
|
+++ b/src/shared/missing.h
|
|
@@ -269,6 +269,11 @@ struct btrfs_qgroup_inherit {
|
|
__u64 qgroups[0];
|
|
};
|
|
|
|
+struct btrfs_ioctl_qgroup_limit_args {
|
|
+ __u64 qgroupid;
|
|
+ struct btrfs_qgroup_limit lim;
|
|
+};
|
|
+
|
|
struct btrfs_ioctl_vol_args_v2 {
|
|
__s64 fd;
|
|
__u64 transid;
|
|
@@ -360,6 +365,14 @@ struct btrfs_ioctl_clone_range_args {
|
|
__u64 src_offset, src_length;
|
|
__u64 dest_offset;
|
|
};
|
|
+
|
|
+#define BTRFS_QUOTA_CTL_ENABLE 1
|
|
+#define BTRFS_QUOTA_CTL_DISABLE 2
|
|
+#define BTRFS_QUOTA_CTL_RESCAN__NOTUSED 3
|
|
+struct btrfs_ioctl_quota_ctl_args {
|
|
+ __u64 cmd;
|
|
+ __u64 status;
|
|
+};
|
|
#endif
|
|
|
|
#ifndef BTRFS_IOC_DEFRAG
|
|
@@ -367,6 +380,11 @@ struct btrfs_ioctl_clone_range_args {
|
|
struct btrfs_ioctl_vol_args)
|
|
#endif
|
|
|
|
+#ifndef BTRFS_IOC_RESIZE
|
|
+#define BTRFS_IOC_RESIZE _IOW(BTRFS_IOCTL_MAGIC, 3, \
|
|
+ struct btrfs_ioctl_vol_args)
|
|
+#endif
|
|
+
|
|
#ifndef BTRFS_IOC_CLONE
|
|
#define BTRFS_IOC_CLONE _IOW(BTRFS_IOCTL_MAGIC, 9, int)
|
|
#endif
|
|
@@ -424,6 +442,16 @@ struct btrfs_ioctl_clone_range_args {
|
|
struct btrfs_ioctl_vol_args)
|
|
#endif
|
|
|
|
+#ifndef BTRFS_IOC_QUOTA_CTL
|
|
+#define BTRFS_IOC_QUOTA_CTL _IOWR(BTRFS_IOCTL_MAGIC, 40, \
|
|
+ struct btrfs_ioctl_quota_ctl_args)
|
|
+#endif
|
|
+
|
|
+#ifndef BTRFS_IOC_QGROUP_LIMIT
|
|
+#define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \
|
|
+ struct btrfs_ioctl_qgroup_limit_args)
|
|
+#endif
|
|
+
|
|
#ifndef BTRFS_FIRST_FREE_OBJECTID
|
|
#define BTRFS_FIRST_FREE_OBJECTID 256
|
|
#endif
|