1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#include "config.h"
#ifdef USE_BTRFS
#include <stdlib.h>
#include <linux/btrfs.h>
#include "utils.h"
#include "ioctls.h"
static const struct ioctl btrfs_control_ioctls[] = {
IOCTL(BTRFS_IOC_SCAN_DEV),
IOCTL(BTRFS_IOC_DEVICES_READY),
};
static const char *const btrfs_control_devs[] = {
"btrfs-control",
};
static const struct ioctl_group btrfs_control_grp = {
.devtype = DEV_MISC,
.devs = btrfs_control_devs,
.devs_cnt = ARRAY_SIZE(btrfs_control_devs),
.sanitise = pick_random_ioctl,
.ioctls = btrfs_control_ioctls,
.ioctls_cnt = ARRAY_SIZE(btrfs_control_ioctls),
};
REG_IOCTL_GROUP(btrfs_control_grp)
#endif
|