提交 6e0a47aa 编写于 作者: C Christoph Hellwig 提交者: Aurelien Jarno

raw-posix: don't assign bs->read_only

bdrv_open already takes care of this for us.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Acked-by: NKevin Wolf <kwolf@redhat.com>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 4e9e9d6e
...@@ -142,7 +142,6 @@ static int raw_open_common(BlockDriverState *bs, const char *filename, ...@@ -142,7 +142,6 @@ static int raw_open_common(BlockDriverState *bs, const char *filename,
s->open_flags |= O_RDWR; s->open_flags |= O_RDWR;
} else { } else {
s->open_flags |= O_RDONLY; s->open_flags |= O_RDONLY;
bs->read_only = 1;
} }
/* Use O_DSYNC for write-through caching, no flags for write-back caching, /* Use O_DSYNC for write-through caching, no flags for write-back caching,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册