Fam Zheng b64ec4e4ad block: add block driver read only whitelist
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 a readonly whitelist option, and for
backward compatibility, the old configure option --block-drv-whitelist
is now an alias to rw whitelist.

Drivers in readonly list is only permitted to open file readonly, and
returns -ENOTSUP for RW opening.

E.g. To include vmdk readonly, and others read+write:
    ./configure --target-list=x86_64-softmmu \
                --block-drv-rw-whitelist=qcow2,raw,file,qed \
                --block-drv-ro-whitelist=vmdk

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-06-04 12:11:58 +02:00
..
2013-05-18 16:35:12 +04:00
2013-05-01 13:06:07 +02:00
2013-05-26 11:37:58 +00:00
2013-05-18 16:35:12 +04:00
2013-05-18 16:35:12 +04:00
2013-05-01 20:55:21 +04:00
2013-06-03 11:37:44 +02:00
2013-05-18 16:35:12 +04:00
2013-05-24 18:42:19 +02:00
2013-06-03 17:17:45 +01:00
2013-05-26 11:37:58 +00:00
2013-06-03 17:17:46 +01:00
2013-06-03 11:38:03 +02:00
2013-04-29 08:27:50 -05:00