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

View File

@@ -372,6 +372,11 @@ int main(int argc, char *argv[])
{
self.dsk.csum_block_size = stoull_full(self.options["csum_block_size"], 0);
}
if (!self.dsk.data_csum_type)
{
// A manual layout skips calc_lengths() which zeroes the 4096 default
self.dsk.csum_block_size = 0;
}
if (self.options["io"] != "")
{
self.dsk.data_io = self.dsk.meta_io = self.dsk.journal_io = self.options["io"];