[libvirt] [PATCHv9 9/9] blockjob: relabel entire existing chain
Peter Krempa
pkrempa at redhat.com
Fri Oct 26 13:43:39 UTC 2012
On 10/23/12 04:10, Eric Blake wrote:
> When using block copy to pivot over to a new chain, the backing files
> for the new chain might still need labeling (particularly if the user
> passes --reuse-ext with a relative backing file name). Relabeling a
> file that is already labeled won't hurt, so this just labels the entire
> chain at the point of the pivot. Doing the relabel of the chain uses
> the fact that we already safely probed the file type of an external
> file at the start of the block copy.
>
> * src/qemu/qemu_driver.c (qemuDomainBlockPivot): Relabel chain before
> asking qemu to pivot.
> ---
>
> v9: properly restore state when exiting on error
>
> src/qemu/qemu_driver.c | 60 +++++++++++++++++++++++++++++++++++++++++++-------
> 1 file changed, 52 insertions(+), 8 deletions(-)
>
ACK.
Peter
More information about the libvir-list
mailing list