Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm bufio: subtract the number of initial sectors in dm_bufio_get_devi…
…ce_size dm_bufio_get_device_size returns the device size in blocks. Before returning the value, we must subtract the nubmer of starting sectors. The number of starting sectors may not be divisible by block size. Note that currently, no target is using dm_bufio_set_sector_offset and dm_bufio_get_device_size simultaneously, so this change has no effect. However, an upcoming dm-verity-fec fix needs this change. Signed-off-by: Mikulas Patocka <[email protected]> Reviewed-by: Milan Broz <[email protected]> Cc: [email protected] Signed-off-by: Mike Snitzer <[email protected]>
- Loading branch information