All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] introduce interface to list all badblocks
@ 2020-06-08  8:45 yangerkun
  2020-06-08  8:45 ` [PATCH 1/2] dm dust: add " yangerkun
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: yangerkun @ 2020-06-08  8:45 UTC (permalink / raw)
  To: bgurney, agk, snitzer; +Cc: dm-devel, 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(+)

-- 
2.23.0.rc2.8.gff66981f45

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-06-16 13:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08  8:45 [PATCH 0/2] introduce interface to list all badblocks yangerkun
2020-06-08  8:45 ` [PATCH 1/2] dm dust: add " yangerkun
2020-06-08  8:45 ` [PATCH 2/2] dm dust: introduce listbadblocks in the rst yangerkun
2020-06-15  0:57 ` [PATCH 0/2] introduce interface to list all badblocks yangerkun
2020-06-15 17:03 ` Alasdair G Kergon
2020-06-16 12:28   ` Bryn M. Reeves
2020-06-16 13:02     ` yangerkun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.