]> git.sesse.net Git - bcachefs-tools-debian/blob - cmd_fs.c
update bcache code, fsck improvements
[bcachefs-tools-debian] / cmd_fs.c
1
2 #include "cmds.h"
3
4 struct bcache_fs {
5         /* options... */
6
7         u64             capacity;
8
9         /* XXX: dirty != used, it doesn't count metadata */
10         u64             bytes_dirty;
11 };
12
13 #if 0
14 static struct bcache_fs fill_fs(struct bcache_handle fs)
15 {
16         return (struct bcache_fs) {
17         };
18 }
19 #endif
20
21 int cmd_fs_show(int argc, char *argv[])
22 {
23         if (argc != 2)
24                 die("Please supply a filesystem");
25
26         struct bcache_handle fs = bcache_fs_open(argv[1]);
27
28         fs = fs;
29         return 0;
30 }
31
32 int cmd_fs_set(int argc, char *argv[])
33 {
34         if (argc != 2)
35                 die("Please supply a filesystem");
36
37         struct bcache_handle fs = bcache_fs_open(argv[1]);
38
39         fs = fs;
40         return 0;
41 }