From: Christoph Hellwig Date: Wed, 7 Apr 2010 11:58:06 +0000 (+0200) Subject: raw-posix: don't assign bs->read_only X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6e0a47aae03c6646c3094b2b9a7625d8dcb36e55;p=qemu.git raw-posix: don't assign bs->read_only bdrv_open already takes care of this for us. Signed-off-by: Christoph Hellwig Acked-by: Kevin Wolf Signed-off-by: Aurelien Jarno --- diff --git a/block/raw-posix.c b/block/raw-posix.c index ed8db5ed1a..6521ca442a 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,