]> git.sesse.net Git - bcachefs-tools-debian/blob - cmd_run.c
remove library from bcachefs-tools Rust package
[bcachefs-tools-debian] / cmd_run.c
1
2 #include <errno.h>
3 #include <stdbool.h>
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <string.h>
7
8 #include <fcntl.h>
9 #include <sys/ioctl.h>
10 #include <unistd.h>
11
12 #include <uuid/uuid.h>
13
14 #include "libbcachefs/bcachefs_ioctl.h"
15 #include "cmds.h"
16 #include "libbcachefs.h"
17
18 #if 0
19 int cmd_run(int argc, char *argv[])
20 {
21         return 0;
22 }
23
24 int cmd_stop(int argc, char *argv[])
25 {
26         if (argc != 2)
27                 die("Please supply a filesystem");
28
29         struct bchfs_handle fs = bcache_fs_open(argv[1]);
30         xioctl(fs.ioctl_fd, BCH_IOCTL_STOP);
31         return 0;
32 }
33 #endif