blob: 1bf84e5cdfd7ec5721175f0e175cff4068bddc97 (
plain)
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
32
33
|
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <uuid/uuid.h>
#include "libbcachefs/bcachefs_ioctl.h"
#include "cmds.h"
#include "libbcachefs.h"
#if 0
int cmd_run(int argc, char *argv[])
{
return 0;
}
int cmd_stop(int argc, char *argv[])
{
if (argc != 2)
die("Please supply a filesystem");
struct bchfs_handle fs = bcache_fs_open(argv[1]);
xioctl(fs.ioctl_fd, BCH_IOCTL_STOP);
return 0;
}
#endif
|