aboutsummaryrefslogtreecommitdiffstats
path: root/ioctl.h
diff options
context:
space:
mode:
authorAlexander Block <ablock84@googlemail.com>2012-06-20 18:44:04 +0200
committerChris Mason <chris.mason@fusionio.com>2012-07-26 14:51:27 -0400
commita55616ee6ccfc08605fcfc73b6b647588ec1e44a (patch)
tree415da8c2694a3c4846dde2a48ff78384794520f8 /ioctl.h
parent84b9586a897aeec3f8e313b33bb565c5b705dfea (diff)
downloadbtrfs-progs-a55616ee6ccfc08605fcfc73b6b647588ec1e44a.tar.gz
btrfs-progs-a55616ee6ccfc08605fcfc73b6b647588ec1e44a.tar.xz
btrfs-progs-a55616ee6ccfc08605fcfc73b6b647588ec1e44a.zip
Btrfs-progs: update ioctl.h to support btrfs send ioctl
Add btrfs_ioctl_send_args and BTRFS_IOC_SEND to ioctl.h Signed-off-by: Alexander Block <ablock84@googlemail.com>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ioctl.h b/ioctl.h
index 031ef7c..d6f3d07 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -288,6 +288,15 @@ struct btrfs_ioctl_received_subvol_args {
__u64 reserved[16]; /* in */
};
+struct btrfs_ioctl_send_args {
+ __s64 send_fd; /* in */
+ __u64 clone_sources_count; /* in */
+ __u64 *clone_sources; /* in */
+ __u64 parent_root; /* in */
+ __u64 flags; /* in */
+ __u64 reserved[4]; /* in */
+};
+
/* BTRFS_IOC_SNAP_CREATE is no longer used by the btrfs command */
#define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \
struct btrfs_ioctl_vol_args)
@@ -359,4 +368,6 @@ struct btrfs_ioctl_clone_range_args {
#define BTRFS_IOC_SET_RECEIVED_SUBVOL _IOWR(BTRFS_IOCTL_MAGIC, 37, \
struct btrfs_ioctl_received_subvol_args)
+#define BTRFS_IOC_SEND _IOW(BTRFS_IOCTL_MAGIC, 38, struct btrfs_ioctl_send_args)
+
#endif