From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MthcP-0007v0-6X for qemu-devel@nongnu.org; Fri, 02 Oct 2009 08:52:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MthcK-0007uM-EA for qemu-devel@nongnu.org; Fri, 02 Oct 2009 08:52:16 -0400 Received: from [199.232.76.173] (port=40316 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MthcK-0007uJ-9I for qemu-devel@nongnu.org; Fri, 02 Oct 2009 08:52:12 -0400 Received: from mx20.gnu.org ([199.232.41.8]:61792) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MthcJ-0001l3-QB for qemu-devel@nongnu.org; Fri, 02 Oct 2009 08:52:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MthcI-0005Pa-SN for qemu-devel@nongnu.org; Fri, 02 Oct 2009 08:52:11 -0400 Message-ID: <4AC5F774.1030502@redhat.com> Date: Fri, 02 Oct 2009 14:52:04 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] RFC configurable block formats References: <873a64dyit.fsf@pike.pond.sub.org> <4AC3E97C.7070005@codemonkey.ws> <87ab0azwlz.fsf@pike.pond.sub.org> In-Reply-To: <87ab0azwlz.fsf@pike.pond.sub.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org > +static int bdrv_is_whitelisted(BlockDriver *drv) > +{ > + static const char *whitelist[] = { > + /* TODO this needs to come from configure */ > + "raw", "qcow2", "host_device", NULL > + }; Maybe have separate whitelists for read/write and readonly access? So we could -- say -- allow readonly access to qcow images? cheers, Gerd