]> xenbits.xensource.com Git - libvirt.git/commit
util: storagefile: Always store raw backing name in the metadata
authorPeter Krempa <pkrempa@redhat.com>
Mon, 14 Apr 2014 13:49:28 +0000 (15:49 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 Apr 2014 21:05:01 +0000 (23:05 +0200)
commit9944b710a555ec55beede38df86800bfcb61dffe
tree59a8983bc7d09f441437bb1615870e12149c185b
parent00c272421db35012f6971e83bfa0e81b432c55a2
util: storagefile: Always store raw backing name in the metadata

Don't use the backingStoreRaw as a indication of broken chains. Fill it
always and tweak the broken image chain detector to avoid changing the
semantics.

The new semantics to detect a broken chain is the presence of string in
backingStoreRaw but the lack of the backing chain metadata structure in
the chain.

Now that the raw backing store name is always filled there's no need to
pass the raw name variable separately to fill in case the backing is not
a file. Tweak the function so that it can handle a NULL in that case.
src/util/virstoragefile.c