]> git.proxmox.com Git - qemu.git/commit - block.c
block: introduce BlockDriver.bdrv_needs_filename to enable some drivers.
authorBenoît Canet <benoit@irqsave.net>
Tue, 24 Sep 2013 15:07:04 +0000 (17:07 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 25 Sep 2013 14:21:28 +0000 (16:21 +0200)
commit030be32184034261da14693b69e9582f6fe4af9d
treef4e1df2addee8730fa499e883690224d01d72113
parent2fe2e2907163f6d86b6bbced776ec8f9319ca83f
block: introduce BlockDriver.bdrv_needs_filename to enable some drivers.

Some drivers will have driver specifics options but no filename.
This new bool allow the block layer to treat them correctly.

The .bdrv_needs_filename is set in drivers not having .bdrv_parse_filename and
not having .bdrv_open.

The first exception to this rule will be the quorum driver.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/gluster.c
block/iscsi.c
block/raw-posix.c
block/raw-win32.c
block/rbd.c
block/sheepdog.c
include/block/block_int.h