2016-03-12 09:18:42 +03:00
|
|
|
|
|
|
|
#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>
|
|
|
|
|
2017-11-27 04:29:00 +03:00
|
|
|
#include "libbcachefs/bcachefs_ioctl.h"
|
2017-02-02 06:16:42 +03:00
|
|
|
#include "cmds.h"
|
2017-12-28 09:01:16 +03:00
|
|
|
#include "libbcachefs.h"
|
2016-03-12 09:18:42 +03:00
|
|
|
|
2018-05-17 08:38:57 +03:00
|
|
|
#if 0
|
2016-08-24 06:50:31 +03:00
|
|
|
int cmd_run(int argc, char *argv[])
|
2016-03-12 09:18:42 +03:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-08-24 06:50:31 +03:00
|
|
|
int cmd_stop(int argc, char *argv[])
|
2016-03-12 09:18:42 +03:00
|
|
|
{
|
2016-10-06 18:19:55 +03:00
|
|
|
if (argc != 2)
|
2016-03-12 09:18:42 +03:00
|
|
|
die("Please supply a filesystem");
|
|
|
|
|
2017-12-28 09:01:16 +03:00
|
|
|
struct bchfs_handle fs = bcache_fs_open(argv[1]);
|
2017-03-01 13:45:15 +03:00
|
|
|
xioctl(fs.ioctl_fd, BCH_IOCTL_STOP);
|
2016-03-12 09:18:42 +03:00
|
|
|
return 0;
|
|
|
|
}
|
2018-05-17 08:38:57 +03:00
|
|
|
#endif
|