diff options
author | Christoph Hellwig <hch@lst.de> | 2010-01-20 18:13:42 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-26 15:42:02 -0600 |
commit | 9a2d77ad0dd6b3e93669543b846a75c02878eba7 (patch) | |
tree | b9c5bac76f770d1def9446c3853664197eb6e69f /block/nbd.c | |
parent | 6987307ca30aead67e8545934186c92f942710f6 (diff) |
block: kill BDRV_O_CREAT
The BDRV_O_CREAT option is unused inside qemu and partially duplicates
the bdrv_create method. Remove it, and the -C option to qemu-io which
isn't used in qemu-iotests anyway.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block/nbd.c')
-rw-r--r-- | block/nbd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/nbd.c b/block/nbd.c index 47d4778999..7bac38d086 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -49,9 +49,6 @@ static int nbd_open(BlockDriverState *bs, const char* filename, int flags) size_t blocksize; int ret; - if ((flags & BDRV_O_CREAT)) - return -EINVAL; - if (!strstart(filename, "nbd:", &host)) return -EINVAL; |