Implement argp support for mkfs and add --force

Support max-meta-size and max-data-size using KMGTP units with rounding.

Detect other fs signatures using blkid library.

Detect ScoutFS super using magic value.

Move read_block() from print.c into util.c since blkid also needs it.

Signed-off-by: Andy Grover <agrover@versity.com>
This commit is contained in:
Andy Grover
2021-01-12 16:29:42 -08:00
parent 6b5ddf2b3a
commit 7befc61482
8 changed files with 270 additions and 128 deletions
+1
View File
@@ -112,5 +112,6 @@ static inline int memcmp_lens(const void *a, int a_len,
}
int get_path(char *path, int flags);
int read_block(int fd, u64 blkno, int shift, void **ret_val);
#endif