]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: return backing information separately from metadata
authorEric Blake <eblake@redhat.com>
Thu, 10 Apr 2014 01:49:07 +0000 (19:49 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 10 Apr 2014 22:56:16 +0000 (16:56 -0600)
commita4dfc8d31de9326a64bbd9be35dd2e1596237b7b
tree55e779b522ef583123fa277b294af57d97068e2d
parentc919ed7ea59f38c55725c15318a2ec150f2c0af9
conf: return backing information separately from metadata

A couple pieces of virStorageFileMetadata are used only while
collecting information about the chain, and don't need to
live permanently in the struct.  This patch refactors external
callers to collect the information separately, so that the
next patch can remove the fields.

* src/util/virstoragefile.h (virStorageFileGetMetadataFromBuf):
Alter signature.
* src/util/virstoragefile.c (virStorageFileGetMetadataInternal):
Likewise.
(virStorageFileGetMetadataFromFDInternal): Adjust callers.
* src/storage/storage_backend_fs.c (virStorageBackendProbeTarget):
Likewise.
* src/storage/storage_backend_gluster.c
(virStorageBackendGlusterRefreshVol): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/storage/storage_backend_fs.c
src/storage/storage_backend_gluster.c
src/util/virstoragefile.c
src/util/virstoragefile.h