On Thu, May 07, 2015 at 05:45:48PM +0200, Paolo Bonzini wrote: > This is the behavior in the operating system, for example Linux's > blkdev_write_iter has the following: > > if (bdev_read_only(I_BDEV(bd_inode))) > return -EPERM; > > This does not apply to opening a device for read/write, when the > device only supports read-only operation. In this case any of > EACCES, EPERM or EROFS is acceptable depending on why writing is > not possible. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > block/io.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan
pgpYpxPw21sfz.pgp
Description: PGP signature