On Tue, Jun 14, 2011 at 7:58 PM, Stefan Hajnoczi <stefa...@gmail.com> wrote: > Yes, please.
OK, I'll do it as soon I'll find time for it. On Tue, Jun 14, 2011 at 7:58 PM, Stefan Hajnoczi <stefa...@gmail.com> wrote: > For image files the block layer should be caching the device capacity (size) > anyway, so you probably don't need to allocate the array, just call > bdrv_get_geometry(). That might make it easier to write a self-contained > function. I've tried to not cache, but it turned out that bdrv_get_geometry() calls are quite noticeable in profiler without caching. -- Дмитрий Конищев (Dmitry Konishchev) mailto:konishc...@gmail.com