aboutsummaryrefslogtreecommitdiff
path: root/block/raw-posix.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-04-07 13:58:06 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-04-10 02:22:05 +0200
commit6e0a47aae03c6646c3094b2b9a7625d8dcb36e55 (patch)
treec62342f7b213bf2d65db6b4dbe826c20ccc3cbbd /block/raw-posix.c
parent4e9e9d6e0a68f1691bcdcc80601a9a1bc2954736 (diff)
downloadqemu-6e0a47aae03c6646c3094b2b9a7625d8dcb36e55.zip
qemu-6e0a47aae03c6646c3094b2b9a7625d8dcb36e55.tar.gz
qemu-6e0a47aae03c6646c3094b2b9a7625d8dcb36e55.tar.bz2
raw-posix: don't assign bs->read_only
bdrv_open already takes care of this for us. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'block/raw-posix.c')
-rw-r--r--block/raw-posix.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/raw-posix.c b/block/raw-posix.c
index ed8db5e..6521ca4 100644
--- a/block/raw-posix.c
+++ b/block/raw-posix.c
@@ -142,7 +142,6 @@ static int raw_open_common(BlockDriverState *bs, const char *filename,
s->open_flags |= O_RDWR;
} else {
s->open_flags |= O_RDONLY;
- bs->read_only = 1;
}
/* Use O_DSYNC for write-through caching, no flags for write-back caching,