raw-posix: don't assign bs->read_only
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Apr 2010 11:58:06 +0000 (13:58 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 10 Apr 2010 00:22:05 +0000 (02:22 +0200)
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>
block/raw-posix.c

index ed8db5ed1a02e9de8274041b1e8dca5860e91798..6521ca442a9bfd8cf67fc0311805cf45f3a90e92 100644 (file)
@@ -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,