diff options
author | Bryan Gurney <bgurney@redhat.com> | 2019-08-16 10:09:53 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2019-08-21 11:27:17 -0400 |
commit | 08c04c84a5cde3af9baac0645a7496d6dcd76822 (patch) | |
tree | 8ad8a097d54d8745bbe60b95798194120a703853 /scripts/tracing | |
parent | 5729b6e5a1bcb0bbc28abe82d749c7392f66d2c7 (diff) | |
download | linux-08c04c84a5cde3af9baac0645a7496d6dcd76822.tar.bz2 |
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>
Diffstat (limited to 'scripts/tracing')
0 files changed, 0 insertions, 0 deletions