vitastor-disk: Write csum_block_size 0 in JE_START without data checksums #126

Merged
vitalif merged 1 commits from koolkhel/vitastor:write-journal-csum-block-size into master 2026-11-17 23:40:19 +03:00

1 Commits

Author SHA1 Message Date
9d5fe35d0f vitastor-disk: Write csum_block_size 0 in JE_START without data checksums
With a manual layout, write-journal takes data_csum_type and
csum_block_size from the JSON "start" entry and otherwise keeps the
blockstore_disk_t defaults. calc_lengths(), which zeroes csum_block_size
when there are no checksums, is not run for a manual layout. So a JSON
without a "start" entry produced JE_START with data_csum_type none and
csum_block_size 4096, and raw-resize then refused the journal: "journal
header has different checksum parameters: none/4096 vs none/0".

Zero csum_block_size when there are no data checksums.
2026-11-17 21:13:00 +03:00