]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Require option flags for 'blkdeviotune' arguments
authorPeter Krempa <pkrempa@redhat.com>
Wed, 13 Mar 2024 21:50:02 +0000 (22:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:29 +0000 (14:24 +0200)
commit39218865f46afef980fcd50f7c3d19b6b9b30f6c
treed376104824ba595a1b5a99a180e8b28850ccc1f4
parentbaa20d6eb8312af5c741bcd662657e6e5e62f63c
virsh: Require option flags for 'blkdeviotune' arguments

Make all of the tunable parameter flags require the option name (don't
parse them positionally).

While techically this would be a breaking change if anyone were to
specify the tunable values positionally this is not the case as the
first two tunables are not compatible with each other:

  $ virsh blkdeviotune cd vda 4 5
  error: Unable to change block I/O throttle
  error: invalid argument: total and read/write of bytes_sec cannot be set at the same time

The above is produced by all implementations of the API (qemu and test
drivers). It is true that the first tunable can be specified
positionally (--total-bytes-sec) but it is misleading and shoud not be
allowed either.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c