Jeff Cody be028adced block: correctly set the keep_read_only flag
I believe the bs->keep_read_only flag is supposed to reflect
the initial open state of the device. If the device is initially
opened R/O, then commit operations, or reopen operations changing
to R/W, are prohibited.

Currently, the keep_read_only flag is only accurate for the active
layer, and its backing file. Subsequent images end up always having
the keep_read_only flag set.

For instance, what happens now:

[  base  ]  kro = 1, ro = 1
    |
    v
[ snap-1 ]  kro = 1, ro = 1
    |
    v
[ snap-2 ]  kro = 0, ro = 1
    |
    v
[ active ]  kro = 0, ro = 0

What we want:

[  base  ]  kro = 0, ro = 1
    |
    v
[ snap-1 ]  kro = 0, ro = 1
    |
    v
[ snap-2 ]  kro = 0, ro = 1
    |
    v
[ active ]  kro = 0, ro = 0

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2012-09-24 15:15:11 +02:00
2012-09-12 15:50:09 +02:00
2012-08-28 20:38:39 +02:00
2012-08-20 11:05:08 -03:00
…
2012-08-28 20:38:39 +02:00
2012-09-21 19:53:17 +02:00
2012-09-07 09:02:44 +03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-08-13 13:20:50 -03:00
…
…
…
…
…
…
…
…
2012-09-05 15:48:57 -03:00
…
…
…
…
…
2012-09-15 15:34:27 +00:00
…
…
2012-08-16 13:41:16 -05:00
…
…
…
…
…
…
2012-08-13 14:17:53 -03:00
2012-09-05 15:48:57 -03:00
2012-09-22 17:59:12 +00:00
…
…
2012-09-05 15:48:57 -03:00
2012-09-05 15:48:57 -03:00
…
…
…
2012-09-05 15:48:57 -03:00
…
…
…
…
…
2012-09-09 17:03:09 +03:00
2012-09-10 15:29:51 +03:00
…
…
2012-09-08 09:09:06 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-08-16 13:41:16 -05:00
2012-08-16 13:41:16 -05:00
…
2012-08-13 14:17:53 -03:00
2012-08-13 14:17:53 -03:00
…
…
…
…
…
…
2012-08-16 13:41:15 -05:00
2012-08-16 13:41:15 -05:00
2012-09-05 15:48:57 -03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-09-05 11:44:53 -05:00
…
2012-09-10 13:52:28 -05:00
…

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

- QEMU team
S
Description
A QEMU emulator for legacy Apple devices
Readme GPL-2.0
557 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.9%
C++ 6.4%
Python 3.3%
Dylan 2.9%
Shell 1.6%
Other 2.7%