[libvirt] [PATCH] virsh: Error prompt if one passes negative value for scheduler setting

Eric Blake eblake at redhat.com
Sat Jan 29 14:49:03 UTC 2011


On 01/28/2011 07:40 PM, Osier Yang wrote:
> I'm afraid changing on virStrToLong_u* will affect other codes, pretty
> codes use them.
> 
>>
>>> Is there some codes that expects virStrToLong_{ui,ul,ull} to convert
>>> the negative to {ui, ul, ull}?
>>
>> Probably, given the above arguments about -1 being useful shorthand for
>> the maximum value.
>>
> 
> Yeah, so are you agreed with danpb? making changes on docs?

Yes, I think documenting that negative values are shorthand and wrapped
around to positive is the right thing to do here.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110129/36985b4e/attachment-0001.sig>


More information about the libvir-list mailing list