]> git.sesse.net Git - bcachefs-tools-debian/blob - bcache-fs.c
minimum number of buckets now 1024
[bcachefs-tools-debian] / bcache-fs.c
1
2 #include <nih/option.h>
3
4 #include "bcache.h"
5
6 struct bcache_fs {
7         /* options... */
8
9         u64             capacity;
10
11         /* XXX: dirty != used, it doesn't count metadata */
12         u64             bytes_dirty;
13 };
14
15 static struct bcache_fs fill_fs(struct bcache_handle fs)
16 {
17         return (struct bcache_fs) {
18         };
19 }
20
21 int cmd_fs_show(int argc, char *argv[])
22 {
23         NihOption opts[] = {
24         //      { int shortoption, char *longoption, char *help, NihOptionGroup, char *argname, void *value, NihOptionSetter}
25                 NIH_OPTION_LAST
26         };
27         char **args = bch_nih_init(argc, argv, opts);
28
29         if (nr_args(args) != 1)
30                 die("Please supply a filesystem");
31
32         struct bcache_handle fs = bcache_fs_open(args[0]);
33
34         return 0;
35 }
36
37 int cmd_fs_set(int argc, char *argv[])
38 {
39         NihOption opts[] = {
40         //      { int shortoption, char *longoption, char *help, NihOptionGroup, char *argname, void *value, NihOptionSetter}
41                 NIH_OPTION_LAST
42         };
43         char **args = bch_nih_init(argc, argv, opts);
44
45         if (nr_args(args) < 1)
46                 die("Please supply a filesystem");
47
48         struct bcache_handle fs = bcache_fs_open(args[0]);
49
50         return 0;
51 }