]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainBlockStats(Flags): Produce saner error message on empty disk path
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 28 Feb 2014 08:50:01 +0000 (09:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 28 Feb 2014 08:50:01 +0000 (09:50 +0100)
commit1df00e2b221306c2c48693efa73b02fcffbca895
tree54c6d20ea292f5795620df72f5f3ad3afdab1335
parent8277211300369b9ea0ced9592c29d07488fe3749
virDomainBlockStats(Flags): Produce saner error message on empty disk path

As of 0bd2ccdec an empty disk path for virDomainBlockStats (or the one
with Flags) is allowed meaning "get me overall summarized statistics".
However, running 'virsh domblkstat $dom' throws a misleading error:

  # ./tools/virsh domblkstat dom
  error: Failed to get block stats dom
  error: invalid argument: invalid path:

while after this commit

  # virsh domblkstat dom
  error: Operation not supported: summary statistics are not supported yet

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c
src/test/test_driver.c