On Wed, Dec 10, 2014 at 10:29:32AM -0700, Eric Blake wrote:
On 12/10/2014 06:00 AM, Martin Kletzander wrote:Volume and pool formatting functions took different approaches to unspecified uids/gids. When unknown, it is always parsed as -1, but one of the functions formatted it as unsigned int (wrong) and one as int (better). Due to that, our two of our XML files from tests cannot be parsed on 32-bit machines.In the past, when we've fixed things like this, we need to make sure that we can parse both old XML (that used 4294967295) and new XML (that uses -1). I think you'll need at least one xml2xml test where the input is old-style and output is new-style, to show that we make the conversion correctly (and thus, we don't break on upgrade from older style).
Oh, good point!
RNG schema needs to be modified as well, but because both storagepool.rng and storagevol.rng need same schema for permission element, save some space by moving it to storagecommon.rng.That part makes sense, but I'm not quite ready to ACK without knowing for sure we are testing it thoroughly.
Definitely; version with tests added (and passing without additional modifications) is here: https://www.redhat.com/archives/libvir-list/2014-December/msg00611.html Martin
Attachment:
signature.asc
Description: Digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list