12 #include <nih/option.h>
14 #include <uuid/uuid.h>
18 int cmd_run(int argc, char *argv[])
23 bch_nih_init(argc, argv, opts);
28 int cmd_stop(int argc, char *argv[])
33 char **args = bch_nih_init(argc, argv, opts);
35 if (nr_args(args) != 1)
36 die("Please supply a filesystem");
38 struct bcache_handle fs = bcache_fs_open(args[0]);
40 if (ioctl(fs.fd, BCH_IOCTL_STOP))
41 die("BCH_IOCTL_STOP error: %s", strerror(errno));