Chris Mason | c5739bb | 2007-04-10 09:27:04 -0400 | [diff] [blame] | 1 | #ifndef __IOCTL_ |
| 2 | #define __IOCTL_ |
| 3 | #include <linux/ioctl.h> |
| 4 | |
| 5 | #define BTRFS_IOCTL_MAGIC 0x94 |
| 6 | #define BTRFS_VOL_NAME_MAX 255 |
| 7 | struct btrfs_ioctl_vol_args { |
| 8 | char name[BTRFS_VOL_NAME_MAX + 1]; |
| 9 | }; |
| 10 | |
| 11 | #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ |
| 12 | struct btrfs_ioctl_vol_args) |
Chris Mason | 8352d8a | 2007-04-12 10:43:05 -0400 | [diff] [blame] | 13 | #define BTRFS_IOC_ADD_DISK _IOW(BTRFS_IOCTL_MAGIC, 2, \ |
| 14 | struct btrfs_ioctl_vol_args) |
Chris Mason | c5739bb | 2007-04-10 09:27:04 -0400 | [diff] [blame] | 15 | #endif |