move away from syscall counts towards operation counts
[trinity.git] / ioctls / btrfs-control.c
blob7b89ed0b1933d60d7ffb2ea6b6532de5bae2fd9f
1 #include "config.h"
3 #ifdef USE_BTRFS
5 #include <stdlib.h>
6 #include <linux/btrfs.h>
8 #include "utils.h"
9 #include "ioctls.h"
11 static const struct ioctl btrfs_control_ioctls[] = {
12 IOCTL(BTRFS_IOC_SCAN_DEV),
13 IOCTL(BTRFS_IOC_DEVICES_READY),
16 static const char *const btrfs_control_devs[] = {
17 "btrfs-control",
20 static const struct ioctl_group btrfs_control_grp = {
21 .devtype = DEV_MISC,
22 .devs = btrfs_control_devs,
23 .devs_cnt = ARRAY_SIZE(btrfs_control_devs),
24 .sanitise = pick_random_ioctl,
25 .ioctls = btrfs_control_ioctls,
26 .ioctls_cnt = ARRAY_SIZE(btrfs_control_ioctls),
29 REG_IOCTL_GROUP(btrfs_control_grp)
31 #endif