2016-03-12 09:18:42 +03:00
|
|
|
|
2017-01-08 12:13:18 +03:00
|
|
|
#include "bcache-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");
|
|
|
|
|
2016-10-06 18:19:55 +03:00
|
|
|
struct bcache_handle fs = bcache_fs_open(argv[1]);
|
2016-03-12 09:18:42 +03:00
|
|
|
|
2017-01-08 12:13:18 +03:00
|
|
|
fs = fs;
|
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");
|
|
|
|
|
2016-10-06 18:19:55 +03:00
|
|
|
struct bcache_handle fs = bcache_fs_open(argv[1]);
|
2016-03-12 09:18:42 +03:00
|
|
|
|
2017-01-08 12:13:18 +03:00
|
|
|
fs = fs;
|
2016-03-12 09:18:42 +03:00
|
|
|
return 0;
|
|
|
|
}
|