Re: [PATCH] virsh: reject negative values for scaled integer

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

 



On Fri, May 22, 2015 at 01:07:31PM -0600, Eric Blake wrote:
> On 05/22/2015 08:01 AM, Pavel Hrdina wrote:
> > Some virsh commands have a size parameter, which is handled as scaled
> > integer.  We don't have any *feature* that would allow to use '-1' as
> > maximum size, so it's safe to reject any negative values for those
> > commands.
> > 
> > Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1159171
> > 
> > Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
> > ---
> >  tools/virsh.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> ACK, particularly since it gets hard to justify whether -1M and -1G
> would mean the same "maximum size".

Thanks, pushed now.

Pavel

--
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]