From 1bde5aadf72bec5fe00eb85451cba6ea462bf5fe Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 7 Apr 2010 13:58:06 +0200 Subject: [PATCH] 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(-) 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, -- 2.7.4