]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Clarify temp variable scope in qemuDomainDetermineDiskChain
authorPeter Krempa <pkrempa@redhat.com>
Wed, 16 Jan 2019 14:17:24 +0000 (15:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 30 Jan 2019 16:20:37 +0000 (17:20 +0100)
commit73163a0e86e448d25567a6905a32deea9daa06db
tree8ec70e2e7f14e3ec33330fa69d84926ed046bac2
parentadb15b5adde88945dfd9e00088e2dba5adf51793
qemu: domain: Clarify temp variable scope in qemuDomainDetermineDiskChain

The function at first validates the top image of the chain, then
traverses the chain as declared in the XML (if any) and then procedes to
detect the rest of the chain from images. All of the steps have their
own temporary iterator.

Clarify the use scope of the steps by introducing a new temp variable
holding the top level source and adding comments.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_domain.c