Bryan Gurney 08c04c84a5 dm dust: use dust block size for badblocklist index
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).

Fixes: e4f3fabd67480bf ("dm: add dust target")
Cc: stable@vger.kernel.org
Signed-off-by: Bryan Gurney <bgurney@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2019-08-21 11:27:17 -04:00
..
2016-11-01 09:43:26 -06:00
2017-06-09 09:27:32 -06:00
2019-08-15 15:57:43 -04:00
2019-08-15 15:57:43 -04:00
2019-07-05 15:19:10 -07:00
2019-04-30 16:37:19 -04:00
2019-03-12 10:15:18 -07:00
2019-03-12 10:04:02 -07:00