2011/6/15 Dmitry Konishchev <konishc...@gmail.com>: > On Wed, Jun 15, 2011 at 5:33 PM, Stefan Hajnoczi <stefa...@gmail.com> wrote: >> "disable caching"? > > Image geometry caching. I meant If I call bdrv_get_geometry() every > time I need image geometry instead of obtaining it from bs_geometry > variable.
Haha, sorry. Too much caching: -drive cache=none, total_sectors cached value, bdrv_get_geometry() cached values :). Anyway, bdrv_getlength() will return the total_sectors value instead of calling into raw-posix.c .bdrv_getlength(). That's why it should be cheap. Stefan