throttle: refuse bps_max/iops_max without bps/iops
commitee2bdc33c913b7d765baa5aa338c29fb30a05c9a
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 4 Aug 2015 10:22:12 +0000 (4 11:22 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 5 Aug 2015 11:53:48 +0000 (5 12:53 +0100)
tree265d6b583e53dd9341919bea5233998b61801f6d
parent2be4f242b50a84bf360df02480b173bfed161107
throttle: refuse bps_max/iops_max without bps/iops

The bps_max/iops_max values are meaningless without corresponding
bps/iops values.  Reported an error if bps_max/iops_max is given without
bps/iops.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 1438683733-21111-2-git-send-email-stefanha@redhat.com
blockdev.c
include/qemu/throttle.h
util/throttle.c