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-02-06 16:11:38 +00: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-03-09 09:14:28 +00: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-02-05 17:16:14 +01:00
2015-04-30 16:55:16 +02:00
2015-05-11 16:25:33 +01:00
2015-02-16 15:07:19 +00: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
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme 531 MiB
Languages
C 82.5%
C++ 7%
Python 3.3%
Dylan 2.8%
Shell 1.5%
Other 2.6%