summaryrefslogtreecommitdiff
path: root/block/nbd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-01-20 18:13:42 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-26 15:42:02 -0600
commit35f52e968603a2409a7d5459d5866a735cdbb42d (patch)
treeb9c5bac76f770d1def9446c3853664197eb6e69f /block/nbd.c
parent2b758af819fe8a970b5f9632538c3873f9cc8011 (diff)
downloadqemu-35f52e968603a2409a7d5459d5866a735cdbb42d.tar.gz
qemu-35f52e968603a2409a7d5459d5866a735cdbb42d.tar.bz2
qemu-35f52e968603a2409a7d5459d5866a735cdbb42d.zip
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.c3
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;