From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG8pi-0000oQ-P9 for qemu-devel@nongnu.org; Wed, 19 Feb 2014 10:13:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WG8pc-0002fl-Lm for qemu-devel@nongnu.org; Wed, 19 Feb 2014 10:13:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:12567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG8pc-0002fc-Ea for qemu-devel@nongnu.org; Wed, 19 Feb 2014 10:13:04 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1JFD2KJ024165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 19 Feb 2014 10:13:03 -0500 From: Kevin Wolf Date: Wed, 19 Feb 2014 16:12:51 +0100 Message-Id: <1392822778-4823-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/7] qemu-img: Fix handling of multiply specified options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com, mreitz@redhat.com If you specify the same option more than once (e.g. -o cluster_size=4k -o lazy_refcounts=on), qemu-img silently ignores all but the last one. This series fixes it to either consider all options or to give an error message. Boolean option can still be given more than once as they aren't problematic in this respect (ten times -q is still quiet). Kevin Wolf (7): qemu-img create: Detect options specified more than once qemu-img convert: Detect options specified more than once qemu-img amend: Detect options specified more than once qemu-img: Detect options specified more than once qemu-img create: Support multiple -o options qemu-img convert: Support multiple -o options qemu-img amend: Support multiple -o options qemu-img.c | 198 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 177 insertions(+), 21 deletions(-) -- 1.8.1.4