mbox series

[v3,0/4] introduce interface to list badblocks

Message ID 20200619123803.1441373-1-yangerkun@huawei.com (mailing list archive)
Headers show
Series introduce interface to list badblocks | expand

Message

yangerkun June 19, 2020, 12:37 p.m. UTC
Since .message support report results to user directly. We can change
some type of message(queryblock/countbadblocks/removebadblock) to return
results to user.

Besides, we add a interface 'listbadblocks' to list all bad block. If
no bad block exists, we will return 'null', or we will list them multi
line which each line means one bad block.

v2->v3:
Realize this logical in .message, change logical for some type message to
report results to user too.

yangerkun (4):
  dm dust: report some message results back to user directly
  dm dust: update doc after message results report to user directly
  dm dust: add interface to list all badblocks
  dm dust: introduce listbadblocks in the rst

 .../admin-guide/device-mapper/dm-dust.rst     | 31 +++++++---
 drivers/md/dm-dust.c                          | 58 ++++++++++++++-----
 2 files changed, 69 insertions(+), 20 deletions(-)