diff options
author | Mikulas Patocka <[email protected]> | 2021-02-23 21:21:20 +0100 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2021-03-04 14:53:54 -0500 |
commit | a14e5ec66a7a66e57b24e2469f9212a78460207e (patch) | |
tree | 32846198fd86f5d019701b0d1a0a0e69ebcf7788 /lib/test-string_helpers.c | |
parent | a666e5c05e7c4aaabb2c5d58117b0946803d03d2 (diff) |
dm bufio: subtract the number of initial sectors in dm_bufio_get_device_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]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions