Kevin Wolf <[email protected]> writes: > Am 09.05.2014 um 11:48 hat Markus Armbruster geschrieben: >> It returns a multiple of the sector size. >> >> Signed-off-by: Markus Armbruster <[email protected]> > > Sooner or later this will change. If we do want to remove the rounding, > how about adding an assertion instead so that we find those places at > least when bdrv_getlength() is changed to byte granularity?
There are quite a few places that silently assume bdrv_getlength()'s value is a multiple of BDRV_SECTOR_SIZE, or even of 512. Regardless, I'm happy to add assertions here.
