]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Reject negative numbers in vshCommandOptUL
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Jun 2014 09:08:08 +0000 (11:08 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 12 Jun 2014 12:06:20 +0000 (14:06 +0200)
commit0e2d73051a721a1b077fb41b97ea562082c95c4f
treef504bff428d25bcd3e61e200671fdc211285e33d
parent37e663adb61d157cd84e857c9315c2f47f4d45a7
virsh: Reject negative numbers in vshCommandOptUL

To follow the new semantics of the vshCommandOptToU* functions convert
this one to reject negative numbers too. To allow using -1 for "maximum"
semantics for the two bandwidth functions that use this helper introduce
vshCommandOptULWrap. Although currently the migrate-setspeed function
for the qemu driver will reject -1 as maximum.
tools/virsh-domain.c
tools/virsh.c
tools/virsh.h