mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
31 lines
483 B
C
31 lines
483 B
C
|
|
#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 "bcachefs_ioctl.h"
|
|
#include "cmds.h"
|
|
|
|
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 bcache_handle fs = bcache_fs_open(argv[1]);
|
|
xioctl(fs.ioctl_fd, BCH_IOCTL_STOP);
|
|
return 0;
|
|
}
|