]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
block: Allow configuring whether to account failed and invalid ops
authorAlberto Garcia <berto@igalia.com>
Wed, 28 Oct 2015 15:33:04 +0000 (17:33 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Nov 2015 15:22:45 +0000 (16:22 +0100)
commit362e9299b34b3101aaa20f20363441c9f055fa5e
tree7c5da8ee5a70455154db577a42878555d445f54c
parent7ee12dafe96a86dfa96af38cea1289305e429a55
block: Allow configuring whether to account failed and invalid ops

This patch adds two options, "stats-account-invalid" and
"stats-account-failed", that can be used to decide whether invalid and
failed I/O operations must be used when collecting statistics for
latency and last access time.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: ebc7e5966511a342cad428a392c5f5ad56b15213.1446044837.git.berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/accounting.c
block/qapi.c
blockdev.c
include/block/accounting.h
qapi/block-core.json
qmp-commands.hx