bcachefs-tools/cmd_fs.c

44 lines
609 B
C
Raw Normal View History

2016-03-12 09:18:42 +03:00
2017-02-02 06:16:42 +03:00
#include "cmds.h"
2016-03-12 09:18:42 +03:00
struct bcache_fs {
/* options... */
u64 capacity;
/* XXX: dirty != used, it doesn't count metadata */
u64 bytes_dirty;
};
2017-01-08 12:13:18 +03:00
#if 0
2016-03-12 09:18:42 +03:00
static struct bcache_fs fill_fs(struct bcache_handle fs)
{
return (struct bcache_fs) {
};
}
2017-01-08 12:13:18 +03:00
#endif
2016-03-12 09:18:42 +03:00
2016-08-24 06:50:31 +03:00
int cmd_fs_show(int argc, char *argv[])
2016-03-12 09:18:42 +03:00
{
2016-10-06 18:19:55 +03:00
if (argc != 2)
2016-03-12 09:18:42 +03:00
die("Please supply a filesystem");
#if 0
2016-10-06 18:19:55 +03:00
struct bcache_handle fs = bcache_fs_open(argv[1]);
#endif
2016-03-12 09:18:42 +03:00
return 0;
}
2016-08-24 06:50:31 +03:00
int cmd_fs_set(int argc, char *argv[])
2016-03-12 09:18:42 +03:00
{
2016-10-06 18:19:55 +03:00
if (argc != 2)
2016-03-12 09:18:42 +03:00
die("Please supply a filesystem");
#if 0
2016-10-06 18:19:55 +03:00
struct bcache_handle fs = bcache_fs_open(argv[1]);
#endif
2016-03-12 09:18:42 +03:00
return 0;
}