From 6e0a47aae03c6646c3094b2b9a7625d8dcb36e55 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 7 Apr 2010 13:58:06 +0200 Subject: 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 --- block/raw-posix.c | 1 - 1 file changed, 1 deletion(-) (limited to 'block/raw-posix.c') 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, -- cgit v1.2.3