|
| From: | Gerd Hoffmann |
| Subject: | Re: [Qemu-devel] RFC configurable block formats |
| Date: | Fri, 02 Oct 2009 14:52:04 +0200 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4 |
+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
| [Prev in Thread] | Current Thread | [Next in Thread] |