Re: [PATCH 26/34] util: bitmap: Introduce bitmap subtraction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 18, 2016 at 18:05:12 -0500, John Ferlan wrote:
> On 01/14/2016 11:27 AM, Peter Krempa wrote:

[...]

> > 
> > +    virtTestCounterReset("test11-");
> > +    TESTBINARYOP("0", "0", "0,^0", test11);
> > +    TESTBINARYOP("0-3", "0", "1-3", test11);
> > +    TESTBINARYOP("0-3", "0,3", "1-2", test11);
> > +    TESTBINARYOP("0,^0", "0", "0,^0", test11);
> > +    TESTBINARYOP("0-3", "0-3", "0,^0", test11);
> > +    TESTBINARYOP("0-3", "0,^0", "0-3", test11);
> > +    TESTBINARYOP("0,2", "1,3", "0,2", test11);
> > +
> 
> 0,^0 is "interesting" considering patches 22 & 23

Well, that's a simple way how to describe a empty bitmap without any
hacks that should be used with virBitmapParse since that function
doesn't parse empty string as an empty bitmap.

> 
> Concept seems fine though... although I guess I'd "half expect" there
> would be a need for "Add" as well as "Subtract".

Not really. The code using this function doesn't add bits. It collects a
bitmap and removes processed entries.

> 

Peter

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]