Re: [libvirt] [PATCH 09/21] util: Introduce virBitmapShrink

2017-11-14 Thread Martin Kletzander
On Mon, Nov 13, 2017 at 03:42:40PM -0500, John Ferlan wrote: On 11/13/2017 03:50 AM, Martin Kletzander wrote: Sometimes the size of the bitmap matters and it might not be guessed correctly when parsing from some type of input. For example virBitmapNewData() has Byte granularity, virBitmapNewS

Re: [libvirt] [PATCH 09/21] util: Introduce virBitmapShrink

2017-11-13 Thread John Ferlan
On 11/13/2017 03:50 AM, Martin Kletzander wrote: > Sometimes the size of the bitmap matters and it might not be guessed correctly > when parsing from some type of input. For example virBitmapNewData() has Byte > granularity, virBitmapNewString() has nibble granularity and so on. > virBitmapParse

[libvirt] [PATCH 09/21] util: Introduce virBitmapShrink

2017-11-13 Thread Martin Kletzander
Sometimes the size of the bitmap matters and it might not be guessed correctly when parsing from some type of input. For example virBitmapNewData() has Byte granularity, virBitmapNewString() has nibble granularity and so on. virBitmapParseUnlimited() can be tricked into creating huge bitmap that's