aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--block/raw-posix.c1
1 files changed, 0 insertions, 1 deletions
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,