2 #include <nih/command.h>
3 #include <nih/option.h>
13 /* XXX: dirty != used, it doesn't count metadata */
17 static struct bcache_fs fill_fs(struct bcache_handle fs)
19 return (struct bcache_fs) {
23 NihOption opts_fs_show[] = {
24 // { int shortoption, char *longoption, char *help, NihOptionGroup, char *argname, void *value, NihOptionSetter}
28 int cmd_fs_show(NihCommand *command, char *const *args)
30 if (nr_args(args) != 1)
31 die("Please supply a filesystem");
33 struct bcache_handle fs = bcache_fs_open(args[0]);
38 NihOption opts_fs_set[] = {
39 // { int shortoption, char *longoption, char *help, NihOptionGroup, char *argname, void *value, NihOptionSetter}
43 int cmd_fs_set(NihCommand *command, char *const *args)
45 if (nr_args(args) < 1)
46 die("Please supply a filesystem");
48 struct bcache_handle fs = bcache_fs_open(args[0]);