]> xenbits.xensource.com Git - libvirt.git/commit
storage: util: Clean up arguments of virStorageFileGetMetadataInternal
authorPeter Krempa <pkrempa@redhat.com>
Tue, 15 Apr 2014 12:25:10 +0000 (14:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 Apr 2014 21:08:57 +0000 (23:08 +0200)
commit66d92473fa2378f3dbef1a920977f2f2bf235eca
treec535d1a11fe8511375a10715d7d6e9119371cffe
parent67084ed4ae68f47442f7cf37c0e74d887071cfb4
storage: util: Clean up arguments of virStorageFileGetMetadataInternal

Avoid passing lot of arguments into guts of metadata retrieval to fill
the actual structure. Temporarily fill the structure before passing it
down to the actual metadata extractor.

This will later help the inversion of the steps taken to extract the
metadata so that this function can be fully converted to
virStorageSource as the data struct.

This patch also fixes regression when starting a gluster storage pool
where the volumes don't have local representation so that the
canonicalization of the volume's file name failed. Broken by commit
79f11b35
src/util/virstoragefile.c