diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-24 22:27:43 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-24 22:40:25 -0400 |
commit | bb6eccc2ecd4728871bfc70462d3a4a20daa9d68 (patch) | |
tree | bab67c7568b8ae944a4708731ce689d5a5e76882 /libbcachefs.h | |
parent | c88113e255c449bee983e6456b9c5ee24426e166 (diff) |
Increase default superblock size to 1MB
Also - add an option to bcachefs format for specifying it,
--superblock_size
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'libbcachefs.h')
-rw-r--r-- | libbcachefs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbcachefs.h b/libbcachefs.h index abc25ba0..59c62df3 100644 --- a/libbcachefs.h +++ b/libbcachefs.h @@ -12,6 +12,8 @@ /* option parsing */ +#define SUPERBLOCK_SIZE_DEFAULT 2048 /* 1 MB */ + struct bch_opt_strs { union { char *by_id[bch2_opts_nr]; @@ -31,9 +33,8 @@ struct format_opts { char *label; uuid_le uuid; unsigned version; - + unsigned superblock_size; unsigned encoded_extent_max; - bool encrypted; char *passphrase; }; @@ -42,6 +43,7 @@ static inline struct format_opts format_opts_default() { return (struct format_opts) { .version = bcachefs_metadata_version_current, + .superblock_size = SUPERBLOCK_SIZE_DEFAULT, .encoded_extent_max = 128, }; } |