aboutsummaryrefslogtreecommitdiffstats
path: root/ioctl.h
diff options
context:
space:
mode:
authorAlexander Block <ablock84@googlemail.com>2012-07-25 18:01:24 +0200
committerChris Mason <chris.mason@fusionio.com>2012-07-26 14:51:17 -0400
commit84b9586a897aeec3f8e313b33bb565c5b705dfea (patch)
tree961515c1492a03efbc141bbb31a374c3e4c03468 /ioctl.h
parent499316aeda6b6fbba556c03d24882099a64939a0 (diff)
downloadbtrfs-progs-84b9586a897aeec3f8e313b33bb565c5b705dfea.tar.gz
btrfs-progs-84b9586a897aeec3f8e313b33bb565c5b705dfea.tar.xz
btrfs-progs-84b9586a897aeec3f8e313b33bb565c5b705dfea.zip
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 <ablock84@googlemail.com>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/ioctl.h b/ioctl.h
index 023ca4c..031ef7c 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -20,6 +20,7 @@
#define __IOCTL_
#include <asm/types.h>
#include <linux/ioctl.h>
+#include <time.h>
#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