]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Reject negative numbers in vshCommandOptULongLong
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:21 +0000 (14:06 +0200)
commitc62125395bbc494799f8994ce6d3cfbf96b30c72
tree8082bacfd5b6902e220291ea24b65c13bef2ecaf
parent0e2d73051a721a1b077fb41b97ea562082c95c4f
virsh: Reject negative numbers in vshCommandOptULongLong

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 vol-*load two bandwidth functions that use this helper
introduce vshCommandOptULongLongWrap.
tools/virsh-volume.c
tools/virsh.c
tools/virsh.h