On Thu, Jun 18 2020 at 5:06am -0400, yangerkun <yangerkun@xxxxxxxxxx> 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 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel