summaryrefslogtreecommitdiff
path: root/block/raw-posix.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
commit9a2d77ad0dd6b3e93669543b846a75c02878eba7 (patch)
treeb9c5bac76f770d1def9446c3853664197eb6e69f /block/raw-posix.c
parent6987307ca30aead67e8545934186c92f942710f6 (diff)
downloadqemu-9a2d77ad0dd6b3e93669543b846a75c02878eba7.tar.gz
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/raw-posix.c')
-rw-r--r--block/raw-posix.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/block/raw-posix.c b/block/raw-posix.c
index 52bbcdae76..325d2265f5 100644
--- a/block/raw-posix.c
+++ b/block/raw-posix.c
@@ -205,13 +205,9 @@ out_close:
static int raw_open(BlockDriverState *bs, const char *filename, int flags)
{
BDRVRawState *s = bs->opaque;
- int open_flags = 0;
s->type = FTYPE_FILE;
- if (flags & BDRV_O_CREAT)
- open_flags = O_CREAT | O_TRUNC;
-
- return raw_open_common(bs, filename, flags, open_flags);
+ return raw_open_common(bs, filename, flags, 0);
}
/* XXX: use host sector size if necessary with: