[dm-devel] [PATCH 0/2] introduce interface to list all badblocks
yangerkun
yangerkun at huawei.com
Mon Jun 15 00:57:23 UTC 2020
Hi,
Sorry for not send to Mike. Can you consider to apply this patchset?
Thanks,
Kun.
在 2020/6/8 16:45, yangerkun 写道:
> We can add/remove/query the badblocks, but no interface to list all
> badblocks when we want to know the badblocks we ever set still
> available. Add message listbadblocks to do this.
>
> To list all bad blocks in the bad block list, run the following
> message command:
>
> $ sudo dmsetup message dust1 0 listbadblocks
>
> The following message will appear, listing one bad block number per
> line (using an example device with blocks 1 and 2 in the bad block
> list):
>
> device-mapper: dust: dust_list_badblocks: badblocks list below:
> device-mapper: dust: bad block: 1
> device-mapper: dust: bad block: 2
> device-mapper: dust: dust_list_badblocks: badblocks list end.
>
>
> yangerkun (2):
> dm dust: add interface to list all badblocks
> dm dust: introduce listbadblocks in the rst
>
> .../admin-guide/device-mapper/dm-dust.rst | 18 ++++++++++++++++
> drivers/md/dm-dust.c | 21 +++++++++++++++++++
> 2 files changed, 39 insertions(+)
>
More information about the dm-devel
mailing list