]> xenbits.xensource.com Git - libvirt.git/commit
conf: modify tracking of encrypted images
authorEric Blake <eblake@redhat.com>
Wed, 2 Apr 2014 01:13:51 +0000 (19:13 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 2 Apr 2014 12:03:01 +0000 (06:03 -0600)
commit2279d5605c1ba2fedc6a07b0b7a7f69742523caf
treeafc8a3901d1d7bcd9b0110f77455dc559a80fe0b
parentac9a0963fa07a2351d8586f301f9df52673b3c17
conf: modify tracking of encrypted images

A future patch will merge virStorageFileMetadata and virStorageSource,
but I found it easier to do if both structs use the same information
for tracking whether a source file needs encryption keys.

* src/util/virstoragefile.h (_virStorageFileMetadata): Prepare
full encryption struct instead of just a bool.
* src/storage/storage_backend_fs.c (virStorageBackendProbeTarget):
Use transfer semantics.
* src/storage/storage_backend_gluster.c
(virStorageBackendGlusterRefreshVol): Likewise.
* src/util/virstoragefile.c (virStorageFileGetMetadataInternal):
Populate struct.
(virStorageFileFreeMetadata): Adjust clients.
* tests/virstoragetest.c (testStorageChain): 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
tests/virstoragetest.c