Fix dd treating all < 32k reads as always empty :-X

This commit is contained in:
Vitaliy Filippov
2026-02-22 14:19:13 +03:00
parent 2ed6760447
commit b2427836a1
+1 -1
View File
@@ -442,7 +442,7 @@ struct cli_dd_t
}
delete cur_read;
}
else if (!is_zero(read_op->bitmap_buf, read_op->len/iinfo.in_granularity/8))
else if (!is_zero(read_op->bitmap_buf, (read_op->len/iinfo.in_granularity+7)/8))
{
vitastor_read(cur_read);
}