From 84b9586a897aeec3f8e313b33bb565c5b705dfea Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Wed, 25 Jul 2012 18:01:24 +0200 Subject: Btrfs-progs: update btrfs-progs for subvol uuid+times support Update ctree.h and ioctl.h for the new uuid+times for subvolumes. Signed-off-by: Alexander Block --- ioctl.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'ioctl.h') diff --git a/ioctl.h b/ioctl.h index 023ca4c0..031ef7c6 100644 --- a/ioctl.h +++ b/ioctl.h @@ -20,6 +20,7 @@ #define __IOCTL_ #include #include +#include #define BTRFS_IOCTL_MAGIC 0x94 #define BTRFS_VOL_NAME_MAX 255 @@ -272,6 +273,21 @@ struct btrfs_ioctl_logical_ino_args { __u64 inodes; }; +struct btrfs_ioctl_timespec { + __u64 sec; + __u32 nsec; +}; + +struct btrfs_ioctl_received_subvol_args { + char uuid[BTRFS_UUID_SIZE]; /* in */ + __u64 stransid; /* in */ + __u64 rtransid; /* out */ + struct btrfs_ioctl_timespec stime; /* in */ + struct btrfs_ioctl_timespec rtime; /* out */ + __u64 flags; /* in */ + __u64 reserved[16]; /* 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) @@ -341,4 +357,6 @@ struct btrfs_ioctl_clone_range_args { #define BTRFS_IOC_LOGICAL_INO _IOWR(BTRFS_IOCTL_MAGIC, 36, \ struct btrfs_ioctl_ino_path_args) +#define BTRFS_IOC_SET_RECEIVED_SUBVOL _IOWR(BTRFS_IOCTL_MAGIC, 37, \ + struct btrfs_ioctl_received_subvol_args) #endif -- cgit v1.2.3