]> git.ipfire.org Git - thirdparty/libvirt.git/commit
blockjob: relabel entire existing chain
authorEric Blake <eblake@redhat.com>
Sun, 14 Oct 2012 03:39:40 +0000 (21:39 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 27 Oct 2012 13:43:39 +0000 (07:43 -0600)
commit5a3501be9e7fb49bd9111cd781d90fc3d4b236ab
treecda9627aebb2264ff4fe1e318c33effe1a6dfa2d
parent35c7701c64508f975dfeb8379c56b4b6d0d9b71c
blockjob: relabel entire existing chain

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.
src/qemu/qemu_driver.c