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-06-21 20:04:24 +00: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-07-07 09:04:42 +00:00
2012-08-04 15:51:23 +00:00
2012-08-13 13:20:50 -03:00
2012-09-05 15:48:57 -03:00
2012-08-02 18:12:17 +02:00
2012-09-15 15:34:27 +00:00
2012-08-16 13:41:16 -05:00
2012-07-28 09:23:11 +00: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-08 13:51:12 +02:00
2012-08-03 18:28:37 -05:00
2012-07-10 18:27:33 +02:00
2012-08-08 13:51:12 +02:00
2012-07-14 11:53:03 +00:00
2012-07-14 11:53:03 +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
No description provided
Readme 600 MiB
Languages
C 83.1%
C++ 6.4%
Python 3.3%
Dylan 2.8%
Shell 1.5%
Other 2.6%