diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-30 12:38:54 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-30 12:51:13 -0500 |
commit | 0c7db4eca3e6519043c10288cb41f8a0ee634a0b (patch) | |
tree | fd788cd46ea5b14e287b48677a94384a5abcce27 /libbcachefs.c | |
parent | bca8b084ad754afc54e628d9db7721b90d9480b7 (diff) |
Update bcachefs sources to 62de7539dc bcachefs: Make bkey types globally unique
Diffstat (limited to 'libbcachefs.c')
-rw-r--r-- | libbcachefs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcachefs.c b/libbcachefs.c index 98f058d7..b24e7f37 100644 --- a/libbcachefs.c +++ b/libbcachefs.c @@ -185,7 +185,8 @@ struct bch_sb *bch2_format(struct format_opts opts, if (bch2_sb_realloc(&sb, 0)) die("insufficient memory"); - sb.sb->version = cpu_to_le64(BCH_SB_VERSION_MAX); + sb.sb->version = le16_to_cpu(bcachefs_metadata_version_current); + sb.sb->version_min = le16_to_cpu(bcachefs_metadata_version_current); sb.sb->magic = BCACHE_MAGIC; sb.sb->block_size = cpu_to_le16(opts.block_size); sb.sb->user_uuid = opts.uuid; |