]> xenbits.xensource.com Git - libvirt.git/commit
conf: provide details on network backing store
authorEric Blake <eblake@redhat.com>
Wed, 9 Apr 2014 21:36:30 +0000 (15:36 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 10 Apr 2014 22:34:21 +0000 (16:34 -0600)
commit7010768c5e9d023a7908a649e69b5627e9eba24c
tree641c0ab420fac899cd394c2cfe84aa1c25c5b434
parentaa506b462cc45183b38c8d24f8ae2675e5d268f7
conf: provide details on network backing store

So far, my work has been merely preserving the status quo of
backing file analysis.  But this patch starts to tread in the
territory of making the backing chain code more powerful - we
will eventually support network storage containing non-raw
formats.  Here, we expose metadata information about a network
backing store, even if that information is still hardcoded to
a raw format for now.

* src/util/virstoragefile.c (virStorageFileGetMetadataRecurse):
Also populate struct for non-file backing.
(virStorageFileGetMetadata, virStorageFileGetMetadatainternal):
Recognize non-file top image.
(virFindBackingFile): Add comment.
(virStorageFileChainGetBroken): Adjust comment, ensure output
is set.
* tests/virstoragetest.c (mymain): Update test to reflect it.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/virstoragefile.c
tests/virstoragetest.c