Paolo Bonzini eaf5fe2dd4 block: return EPERM on writes or discards to read-only devices
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 <pbonzini@redhat.com>
Message-id: 1431013548-22492-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-05-22 09:37:33 +01:00
2015-05-08 14:11:10 +03:00
2015-03-19 11:30:37 +03:00
2015-04-30 13:21:42 +02:00
2015-05-11 14:49:03 +01:00
2015-05-11 16:25:33 +01:00
2015-05-11 08:59:07 -04:00
2015-05-14 12:15:18 -07:00
2015-05-20 10:23:08 +02:00
2015-04-04 09:45:59 +03:00
2015-04-28 15:36:09 +02:00
2015-04-26 16:49:24 +01:00
2015-04-30 16:05:48 +03:00
2015-05-08 14:11:10 +03:00
2015-05-12 10:40:31 +01:00
2015-04-30 16:55:16 +02:00
2015-05-11 16:25:33 +01:00
2015-05-11 08:59:07 -04:00
2015-05-14 12:15:18 -07:00
2015-04-25 22:05:07 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%