]> xenbits.xensource.com Git - libvirt.git/commit
storage: make it easier to find file within chain
authorEric Blake <eblake@redhat.com>
Fri, 12 Oct 2012 22:29:14 +0000 (16:29 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 19 Oct 2012 23:35:10 +0000 (17:35 -0600)
commit5eaf6054473cf0a1f4753e5e43280f89ec91c4d1
tree1351ce5c0e8b8656906de98c090d02432e83e4b8
parent82507838e073eb32e570a9bb2508c2863f20211e
storage: make it easier to find file within chain

In order to temporarily label files read/write during a commit
operation, we need to crawl the backing chain and find the absolute
file name that needs labeling in the first place, as well as the
name of the file that owns the backing file.

* src/util/storage_file.c (virStorageFileChainLookup): New
function.
* src/util/storage_file.h: Declare it.
* src/libvirt_private.syms (storage_file.h): Export it.
src/libvirt_private.syms
src/util/storage_file.c
src/util/storage_file.h