mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
978c160405
the issue in cmd_debug - passing members of struct bpos to kstrtoull, which aren't aligned - was a legit bug
44 lines
609 B
C
44 lines
609 B
C
|
|
#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");
|
|
|
|
#if 0
|
|
struct bcache_handle fs = bcache_fs_open(argv[1]);
|
|
#endif
|
|
|
|
return 0;
|
|
}
|
|
|
|
int cmd_fs_set(int argc, char *argv[])
|
|
{
|
|
if (argc != 2)
|
|
die("Please supply a filesystem");
|
|
|
|
#if 0
|
|
struct bcache_handle fs = bcache_fs_open(argv[1]);
|
|
#endif
|
|
|
|
return 0;
|
|
}
|