diff options
author | Christoph Hellwig <hch@lst.de> | 2010-04-07 13:58:06 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-10 02:22:05 +0200 |
commit | 6e0a47aae03c6646c3094b2b9a7625d8dcb36e55 (patch) | |
tree | c62342f7b213bf2d65db6b4dbe826c20ccc3cbbd /block | |
parent | 4e9e9d6e0a68f1691bcdcc80601a9a1bc2954736 (diff) | |
download | qemu-6e0a47aae03c6646c3094b2b9a7625d8dcb36e55.tar.gz qemu-6e0a47aae03c6646c3094b2b9a7625d8dcb36e55.tar.bz2 qemu-6e0a47aae03c6646c3094b2b9a7625d8dcb36e55.zip |
raw-posix: don't assign bs->read_only
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>
Diffstat (limited to 'block')
-rw-r--r-- | block/raw-posix.c | 1 |
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, |