btrfs: send: prepare for v2 protocol
[sfrench/cifs-2.6.git] / include / uapi / linux / btrfs.h
index d7d3cfead056354ab28db9699fb4ab87b1d3afef..738619994e26114c4705a7e307f710a419684964 100644 (file)
@@ -771,10 +771,16 @@ struct btrfs_ioctl_received_subvol_args {
  */
 #define BTRFS_SEND_FLAG_OMIT_END_CMD           0x4
 
+/*
+ * Read the protocol version in the structure
+ */
+#define BTRFS_SEND_FLAG_VERSION                        0x8
+
 #define BTRFS_SEND_FLAG_MASK \
        (BTRFS_SEND_FLAG_NO_FILE_DATA | \
         BTRFS_SEND_FLAG_OMIT_STREAM_HEADER | \
-        BTRFS_SEND_FLAG_OMIT_END_CMD)
+        BTRFS_SEND_FLAG_OMIT_END_CMD | \
+        BTRFS_SEND_FLAG_VERSION)
 
 struct btrfs_ioctl_send_args {
        __s64 send_fd;                  /* in */
@@ -782,7 +788,8 @@ struct btrfs_ioctl_send_args {
        __u64 __user *clone_sources;    /* in */
        __u64 parent_root;              /* in */
        __u64 flags;                    /* in */
-       __u64 reserved[4];              /* in */
+       __u32 version;                  /* in */
+       __u8  reserved[28];             /* in */
 };
 
 /*