mirror of https://github.com/proxmox/mirror_qemu
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>master
parent
4e9e9d6e0a
commit
6e0a47aae0
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue