mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
4e9e9d6e0a
commit
6e0a47aae0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue