]> git.proxmox.com Git - mirror_qemu.git/commit
mirror: Use real permissions in mirror/active commit block job
authorKevin Wolf <kwolf@redhat.com>
Wed, 25 Jan 2017 18:16:34 +0000 (19:16 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:47:46 +0000 (20:47 +0100)
commit4ef85a9c233936d9ac1400d67b066353a6e9f32f
tree8808ae95cd43da22b6da5d6d6f424aa1c299d028
parentbbc02b90bcba371818dbffec89933072f9406945
mirror: Use real permissions in mirror/active commit block job

The mirror block job is mainly used for two different scenarios:
Mirroring to an otherwise unused, independent target node, or for active
commit where the target node is part of the backing chain of the source.

Similarly to the commit block job patch, we need to insert a new filter
node to keep the permissions correct during active commit.

Note that one change this implies is that job->blk points to
mirror_top_bs as its root now, and mirror_top_bs (rather than the actual
source node) contains the bs->job pointer. This requires qemu-img commit
to get the job by name now rather than just taking bs->job.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Acked-by: Max Reitz <mreitz@redhat.com>
block/mirror.c
qemu-img.c
tests/qemu-iotests/141
tests/qemu-iotests/141.out