]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: blkdeviotune: accept human readable values for bytes
authorNishith Shah <nishithshah.2211@gmail.com>
Wed, 4 May 2016 14:25:10 +0000 (14:25 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 9 May 2016 05:48:08 +0000 (07:48 +0200)
commit161713436e00a8532be3d936eec095120b8c6a1a
tree43ea06f999d8d41df17ea13d3443ec5339b5da72
parent99c17cb20536a0210d25d66777065b96e954b30b
virsh: blkdeviotune: accept human readable values for bytes

https://bugzilla.redhat.com/show_bug.cgi?id=885380

Use vshCommandOptScaledInt instead of vshCommandOptULongLong so that
values with suffixes can be passed when bytes are being passed along.
Values for the iops parameters still need to be given in the absolute
form as they are not bytes but numbers.

Signed-off-by: Nishith Shah <nishithshah.2211@gmail.com>
tools/virsh-domain.c
tools/virsh.pod