Re: [RFC PATCH 0/5] md/raid1: introduce a new sync action to repair badblocks
Roman Mamedov <[email protected]>
| Newsgroups | gmane.linux.raid,gmane.linux.kernel |
|---|---|
| Message-ID | <20260106185002.2afbd215@nvm> |
On Tue, 6 Jan 2026 10:44:38 +0800 Zheng Qixing <[email protected]> wrote: > Are you referring to the case where we have logical 512B sectors but > physical 4K sectors? At least that, yes. Such rewriting of bad blocks should happen at least at the physical sector granularity. But from my limited experience it feels like the badblock recovery algorithm in hard drives, in addition to being opaque and proprietary, also highly indeterministic and possibly buggy. In one case it would take REPEATEDLY overwriting a full megabyte around a bad block to finally make the drive remap it. (Maybe less than a megabyte would do, but overwriting only 4K - didn't). Of course I understand such endeavors are outside of scope for mdraid, hence it was just a side note. -- With respect, Roman