Re: [RFC PATCH] badblocks: Improvement badblocks_set() for handling multiple ranges

From: antlists
Date: Tue Dec 22 2020 - 06:12:59 EST


On 20/12/2020 09:46, Coly Li wrote:
Currently blocks/badblocks.c is used by md raid and nvdimm code, and the
badblocks table is irrelevant to any of these two subsystems.

Good to know.

If there will be better code for similar or better functionality, it
should be cool. For me, if the reporting bug is fixed, no difference in
my view:-)

Hopefully that will improve the badblocks handling in md. Sounds like that could in part be the problems we've been seeing.

If I integrate dm-integrity into md, badblocks should be mutually exclusive with it, but because dm-integrity is both a performance and disk-space hit, people might well not want to enable it.

Cheers,
Wol