summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.h
diff options
context:
space:
mode:
authorChris Mason2007-04-10 15:27:04 +0200
committerDavid Woodhouse2007-04-10 15:27:04 +0200
commitc5739bba5260a59cebd20a51a55080592c8d3b07 (patch)
treeff33f7acddcfc60e7395209ff949bb9d90afda32 /fs/btrfs/ioctl.h
parentBtrfs: groundwork for subvolume and snapshot roots (diff)
downloadkernel-qcow2-linux-c5739bba5260a59cebd20a51a55080592c8d3b07.tar.gz
kernel-qcow2-linux-c5739bba5260a59cebd20a51a55080592c8d3b07.tar.xz
kernel-qcow2-linux-c5739bba5260a59cebd20a51a55080592c8d3b07.zip
Btrfs: snapshot progress
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ioctl.h')
-rw-r--r--fs/btrfs/ioctl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h
new file mode 100644
index 000000000000..201fb3270723
--- /dev/null
+++ b/fs/btrfs/ioctl.h
@@ -0,0 +1,13 @@
+#ifndef __IOCTL_
+#define __IOCTL_
+#include <linux/ioctl.h>
+
+#define BTRFS_IOCTL_MAGIC 0x94
+#define BTRFS_VOL_NAME_MAX 255
+struct btrfs_ioctl_vol_args {
+ char name[BTRFS_VOL_NAME_MAX + 1];
+};
+
+#define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \
+ struct btrfs_ioctl_vol_args)
+#endif