From patchwork Wed Apr 7 11:58:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: raw-posix: don't assign bs->read_only From: Christoph Hellwig X-Patchwork-Id: 49602 Message-Id: <20100407115806.GC12452@lst.de> To: qemu-devel@nongnu.org Date: Wed, 7 Apr 2010 13:58:06 +0200 bdrv_open already takes care of this for us. Signed-off-by: Christoph Hellwig Acked-by: Kevin Wolf Index: qemu/block/raw-posix.c =================================================================== --- qemu.orig/block/raw-posix.c 2010-04-07 13:50:16.573261199 +0200 +++ qemu/block/raw-posix.c 2010-04-07 13:50:25.180005926 +0200 @@ -142,7 +142,6 @@ static int raw_open_common(BlockDriverSt 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,