summaryrefslogtreecommitdiff
path: root/cmd_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_fs.c')
-rw-r--r--cmd_fs.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/cmd_fs.c b/cmd_fs.c
new file mode 100644
index 0000000..382d31a
--- /dev/null
+++ b/cmd_fs.c
@@ -0,0 +1,41 @@
+
+#include "cmds.h"
+
+struct bcache_fs {
+ /* options... */
+
+ u64 capacity;
+
+ /* XXX: dirty != used, it doesn't count metadata */
+ u64 bytes_dirty;
+};
+
+#if 0
+static struct bcache_fs fill_fs(struct bcache_handle fs)
+{
+ return (struct bcache_fs) {
+ };
+}
+#endif
+
+int cmd_fs_show(int argc, char *argv[])
+{
+ if (argc != 2)
+ die("Please supply a filesystem");
+
+ struct bcache_handle fs = bcache_fs_open(argv[1]);
+
+ fs = fs;
+ return 0;
+}
+
+int cmd_fs_set(int argc, char *argv[])
+{
+ if (argc != 2)
+ die("Please supply a filesystem");
+
+ struct bcache_handle fs = bcache_fs_open(argv[1]);
+
+ fs = fs;
+ return 0;
+}