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

yangerkun yangerkun at huawei.com
Fri Jun 19 01:07:44 UTC 2020



在 2020/6/18 23:40, Mike Snitzer 写道:
> 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.

Got it! It's my mistake.

Thanks,
Kun.
> 
> Mike
> 
> 
> .
> 





More information about the dm-devel mailing list