projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e9e9d6
)
raw-posix: don't assign bs->read_only
author
Christoph Hellwig
<hch@lst.de>
Wed, 7 Apr 2010 11:58:06 +0000
(13:58 +0200)
committer
Aurelien 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
patch
|
blob
|
history
diff --git
a/block/raw-posix.c
b/block/raw-posix.c
index ed8db5ed1a02e9de8274041b1e8dca5860e91798..6521ca442a9bfd8cf67fc0311805cf45f3a90e92 100644
(file)
--- 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,