aboutsummaryrefslogtreecommitdiffstats
path: root/ioctl.h
diff options
context:
space:
mode:
authorAlexander Block <ablock84@googlemail.com>2012-06-26 01:13:31 +0200
committerChris Mason <chris.mason@fusionio.com>2012-07-26 14:51:16 -0400
commite998a46d2694a502cefdfc09102a478467763c89 (patch)
tree7db492f154a8b8af4c23799fbacc65fcdd3f8ba2 /ioctl.h
parent8935d8436147f86dfbda3d8b8175a77b654b8abc (diff)
downloadbtrfs-progs-e998a46d2694a502cefdfc09102a478467763c89.tar.gz
btrfs-progs-e998a46d2694a502cefdfc09102a478467763c89.tar.xz
btrfs-progs-e998a46d2694a502cefdfc09102a478467763c89.zip
Btrfs-progs: add BTRFS_IOC_SUBVOL_GET/SETFLAGS to ioctl.h
Btrfs send/receive and btrfs props needs this ioctl. This patch requires a recent kernel with the "Btrfs: use _IOR for BTRFS_IOC_SUBVOL_GETFLAGS" patch applied. Signed-off-by: Alexander Block <ablock84@googlemail.com>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ioctl.h b/ioctl.h
index f2e5d8d..6670e08 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -312,6 +312,8 @@ struct btrfs_ioctl_logical_ino_args {
struct btrfs_ioctl_space_args)
#define BTRFS_IOC_SNAP_CREATE_V2 _IOW(BTRFS_IOCTL_MAGIC, 23, \
struct btrfs_ioctl_vol_args_v2)
+#define BTRFS_IOC_SUBVOL_GETFLAGS _IOR(BTRFS_IOCTL_MAGIC, 25, __u64)
+#define BTRFS_IOC_SUBVOL_SETFLAGS _IOW(BTRFS_IOCTL_MAGIC, 26, __u64)
#define BTRFS_IOC_SCRUB _IOWR(BTRFS_IOCTL_MAGIC, 27, \
struct btrfs_ioctl_scrub_args)
#define BTRFS_IOC_SCRUB_CANCEL _IO(BTRFS_IOCTL_MAGIC, 28)