Kevin Wolf 2b23f28639 block/copy-on-read: Fix permissions for inactive node
The copy-on-read drive must not request the WRITE_UNCHANGED permission
for its child if the node is inactive, otherwise starting a migration
destination with -incoming will fail because the child cannot provide
write access yet:

  qemu-system-x86_64: -blockdev copy-on-read,file=img,node-name=cor: Block node is read-only

Earlier QEMU versions additionally ran into an abort() on the migration
source side: bdrv_inactivate_recurse() failed to update permissions.
This is silently ignored today because it was only supposed to loosen
restrictions. This is the symptom that was originally reported here:

  https://bugzilla.redhat.com/show_bug.cgi?id=1733022

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
2019-07-30 12:25:43 +02:00
..
2019-06-04 15:22:22 +02:00
2019-07-15 15:48:40 +02:00
2018-08-31 16:28:33 +02:00
2019-07-15 15:48:40 +02:00
2019-07-19 13:19:18 -05:00
2019-06-04 15:22:22 +02:00
2018-02-09 05:05:11 +01:00
2019-05-28 20:30:55 +02:00
2019-06-24 16:01:04 +02:00
2019-06-04 15:22:22 +02:00
2019-06-04 15:22:22 +02:00
2019-06-04 15:22:22 +02:00