]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: get entire metadata chain in one call
authorEric Blake <eblake@redhat.com>
Sat, 13 Oct 2012 16:47:15 +0000 (10:47 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 19 Oct 2012 23:35:10 +0000 (17:35 -0600)
commit35c74c173320c8b54bc193df3e3ad0f9a8b4286b
treebb2d2554936c73866ab641f1007e62a5218c2d63
parenteac74c1f4752d7311def4b2e4848f5fd218e515c
storage: get entire metadata chain in one call

Previously, no one was using virStorageFileGetMetadata, and for good
reason - it couldn't support root-squash NFS.  Change the signature
and make it useful to future patches, including enhancing the metadata
to recursively track the entire chain.

* src/util/storage_file.h (_virStorageFileMetadata): Add field.
(virStorageFileGetMetadata): Alter signature.
* src/util/storage_file.c (virStorageFileGetMetadata): Rewrite.
(virStorageFileGetMetadataRecurse): New function.
(virStorageFileFreeMetadata): Handle recursion.
src/util/storage_file.c
src/util/storage_file.h