From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMZMR-0007vC-J4 for qemu-devel@nongnu.org; Tue, 04 Aug 2015 06:22:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMZMO-0003m1-A4 for qemu-devel@nongnu.org; Tue, 04 Aug 2015 06:22:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMZMO-0003lm-4C for qemu-devel@nongnu.org; Tue, 04 Aug 2015 06:22:16 -0400 From: Stefan Hajnoczi Date: Tue, 4 Aug 2015 11:22:11 +0100 Message-Id: <1438683733-21111-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] throttle: refuse bps_max/iops_max without bps/iops List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alberto Garcia , Stefan Hajnoczi A bps_max/iops_max value without a corresponding bps/iops does nothing. Avoid confusing the user by refusing invalid inputs instead of silently ignoring them. Stefan Hajnoczi (2): throttle: refuse bps_max/iops_max without bps/iops throttle: add throttle_max_is_missing_limit() test blockdev.c | 6 ++++++ include/qemu/throttle.h | 2 ++ tests/test-throttle.c | 21 +++++++++++++++++++++ util/throttle.c | 15 +++++++++++++++ 4 files changed, 44 insertions(+) -- 2.4.3