1 #ifndef _LINUX_BCACHE_IOCTL_H
2 #define _LINUX_BCACHE_IOCTL_H
4 #include <linux/bcache.h>
5 #include <linux/uuid.h>
11 /* global control dev: */
13 #define BCH_FORCE_IF_DATA_MISSING (1 << 0)
14 #define BCH_FORCE_IF_METADATA_MISSING (1 << 1)
16 #define BCH_IOCTL_ASSEMBLE _IOW('r', 1, struct bch_ioctl_assemble)
17 #define BCH_IOCTL_INCREMENTAL _IOW('r', 1, struct bch_ioctl_incremental)
19 /* cache set control dev: */
21 #define BCH_IOCTL_RUN _IO('r', 2)
22 #define BCH_IOCTL_STOP _IO('r', 3)
24 #define BCH_IOCTL_DISK_ADD _IOW('r', 4, struct bch_ioctl_disk_add)
25 #define BCH_IOCTL_DISK_REMOVE _IOW('r', 5, struct bch_ioctl_disk_remove)
26 #define BCH_IOCTL_DISK_FAIL _IOW('r', 6, struct bch_ioctl_disk_fail)
28 #define BCH_IOCTL_DISK_REMOVE_BY_UUID \
29 _IOW('r', 5, struct bch_ioctl_disk_remove_by_uuid)
30 #define BCH_IOCTL_DISK_FAIL_BY_UUID \
31 _IOW('r', 6, struct bch_ioctl_disk_fail_by_uuid)
33 #define BCH_IOCTL_QUERY_UUID _IOR('r', 6, struct bch_ioctl_query_uuid)
35 struct bch_ioctl_assemble {
42 struct bch_ioctl_incremental {
48 struct bch_ioctl_disk_add {
54 struct bch_ioctl_disk_remove {
60 struct bch_ioctl_disk_fail {
66 struct bch_ioctl_disk_remove_by_uuid {
72 struct bch_ioctl_disk_fail_by_uuid {
78 struct bch_ioctl_query_uuid {
86 #endif /* _LINUX_BCACHE_IOCTL_H */