From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhEpq-00019x-8C for qemu-devel@nongnu.org; Tue, 28 May 2013 04:00:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhEpf-0002i8-50 for qemu-devel@nongnu.org; Tue, 28 May 2013 04:00:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhEpe-0002ha-TD for qemu-devel@nongnu.org; Tue, 28 May 2013 04:00:35 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4S80VrK027591 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 28 May 2013 04:00:31 -0400 Date: Tue, 28 May 2013 10:00:19 +0200 From: Kevin Wolf Message-ID: <20130528080019.GB2854@dhcp-200-207.str.redhat.com> References: <1369723466-3288-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1369723466-3288-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block: add read only to whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: jcody@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Am 28.05.2013 um 08:44 hat Fam Zheng geschrieben: > We may want to include a driver in the whitelist for read only tasks > such as diagnosing or exporting guest data (with libguestfs as a good > example). This patch introduces the magic prefix ^ to include a driver > to the whitelist, but only enables qemu to open specific image > format readonly, and returns -ENOTSUP for RW opening. > > Example: To include vmdk readonly, and others read+write: > ./configure --block-drv-whitelist=qcow2,raw,file,qed,^vmdk > > Signed-off-by: Fam Zheng ^ looks a bit like "not", so this is potentially confusing syntax. Why not simply add a second option? ./configure --block-drv-whitelist=qcow2,raw,file,qed \ --block-drv-ro-whitelist=vmdk Kevin