[dm-devel] dm dust: use dust blksz for badblocklist index

Mike Snitzer snitzer at redhat.com
Fri Aug 16 14:45:26 UTC 2019


On Fri, Aug 16 2019 at 10:09am -0400,
Bryan Gurney <bgurney at redhat.com> wrote:

> Change the "frontend" dust_remove_block, dust_add_block, and
> dust_query_block functions to store the "dust block number", instead
> of the sector number corresponding to the "dust block number"
> 
> For the "backend" functions dust_map_read and dust_map_write,
> right-shift by sect_per_block_shift.  This fixes the inability
> to emulate failure beyond the first sector of each "dust block",
> for devices with a "dust block size" larger than 512 bytes.
> 
> Signed-off-by: Bryan Gurney <bgurney at redhat.com>

Thanks, I tweaked the header very slightly and staged it in linux-next
for 5.4 via linux-dm.git.

Mike




More information about the dm-devel mailing list