[dm-devel] [PATCH v2 0/2] introduce interface to list all badblocks

Mike Snitzer snitzer at redhat.com
Thu Jun 18 15:40:50 UTC 2020


On Thu, Jun 18 2020 at  5:06am -0400,
yangerkun <yangerkun at huawei.com> wrote:

> 
> This patchset will list badblocks while we do 'dmsetup status'.
> 
> Image that we have mark block 1 and 2 as bad block, run following
> command will list all bad blocks:
> 
>     $ sudo dmsetup status dust1
>     0 33552384 dust 252:17 bypass verbose badblocks list: 1 2
> 
> v1->v2:
> Realize this logical in dust_status instead dust_message since the
> result can return to user directly.

Seems you've misundeerstood.  Please don't augment status to include the
listing of badblocks.  The list _could_ be extremely long.

The feedback you got earlier was to use DMEMIT() from the .message
hook.  And the listing would be provided as output from the 'dmsetup
message ...' command.

Mike




More information about the dm-devel mailing list