]> git.sesse.net Git - bcachefs-tools-debian/blob - cmd_run.c
Resizing
[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 int cmd_run(int argc, char *argv[])
19 {
20         return 0;
21 }
22
23 int cmd_stop(int argc, char *argv[])
24 {
25         if (argc != 2)
26                 die("Please supply a filesystem");
27
28         struct bchfs_handle fs = bcache_fs_open(argv[1]);
29         xioctl(fs.ioctl_fd, BCH_IOCTL_STOP);
30         return 0;
31 }