]> git.proxmox.com Git - mirror_qemu.git/commit - configure
block: add block driver read only whitelist
authorFam Zheng <famz@redhat.com>
Wed, 29 May 2013 11:35:40 +0000 (19:35 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 4 Jun 2013 10:11:58 +0000 (12:11 +0200)
commitb64ec4e4ade581d662753cdeb0d7e0e27aafbf81
tree73a06f4c2528be5cf76830bb9679b4a37e87aa7e
parent8ddd08c5d1415a71f21157686d43f48ff14992b6
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>
block.c
blockdev.c
configure
hw/block/xen_disk.c
include/block/block.h
scripts/create_config