qemu/include/block
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
..
aio.h aio: add a ThreadPool instance to AioContext 2013-03-15 16:07:50 +01:00
block_int.h block: Remove filename parameter from .bdrv_file_open() 2013-04-22 11:34:35 +02:00
block.h block: add block driver read only whitelist 2013-06-04 12:11:58 +02:00
blockjob.h block: move include files to include/block/ 2012-12-19 08:31:31 +01:00
coroutine_int.h coroutine: stop using AioContext in CoQueue 2013-05-24 16:17:56 +02:00
coroutine.h coroutine: use AioContext for CoQueue BH 2013-03-15 16:07:51 +01:00
nbd.h nbd: support large NBD requests 2013-05-03 13:05:49 +02:00
scsi.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
thread-pool.h threadpool: drop global thread pool 2013-03-15 16:07:51 +01:00