summaryrefslogtreecommitdiff
path: root/ioctl.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-03-24 15:04:49 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-03-24 15:04:49 -0400
commit26afd0f31d59853f51120622b0121cdfc72cd398 (patch)
tree7fb3b9c7039a676f5cd35b35b4ad6cebdaaec052 /ioctl.h
parent1f3ba6a3f9440a40108273dbbe4f37306be8d9ad (diff)
ioctls to scan for btrfs filesystems
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ioctl.h b/ioctl.h
index 8c629066..4551e820 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -22,8 +22,10 @@
#define BTRFS_IOCTL_MAGIC 0x94
#define BTRFS_VOL_NAME_MAX 255
+#define BTRFS_PATH_NAME_MAX 4095
+
struct btrfs_ioctl_vol_args {
- char name[BTRFS_VOL_NAME_MAX + 1];
+ char name[BTRFS_PATH_NAME_MAX + 1];
};
#define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \
@@ -32,4 +34,6 @@ struct btrfs_ioctl_vol_args {
struct btrfs_ioctl_vol_args)
#define BTRFS_IOC_RESIZE _IOW(BTRFS_IOCTL_MAGIC, 3, \
struct btrfs_ioctl_vol_args)
+#define BTRFS_IOC_SCAN_DEV _IOW(BTRFS_IOCTL_MAGIC, 4, \
+ struct btrfs_ioctl_vol_args)
#endif