]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: use common struct in storage volumes
authorEric Blake <eblake@redhat.com>
Tue, 1 Apr 2014 21:11:30 +0000 (15:11 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 2 Apr 2014 12:03:00 +0000 (06:03 -0600)
commitdf17611525574fa22af909bccedbed5fb16a2d08
tree9f523179604a4386acfca84fa07a86c240751484
parent2a4fd2281edbfca230bf05c9116b2cc6ee7e7ccf
conf: use common struct in storage volumes

A fairly smooth transition.  And now that domain disks and
storage volumes share a common struct, it opens the doors for
a future patch to expose more details in the XML for both
objects.

* src/conf/storage_conf.h (_virStorageVolTarget): Delete.
(_virStorageVolDef): Use common type.
* src/conf/storage_conf.c (virStorageVolDefFree)
(virStorageVolTargetDefFormat): Update clients.
* src/storage/storage_backend.h: Likewise.
* src/storage/storage_backend.c
(virStorageBackendDetectBlockVolFormatFD)
(virStorageBackendUpdateVolTargetInfo)
(virStorageBackendUpdateVolTargetInfoFD): Likewise.
* src/storage/storage_backend_fs.c (virStorageBackendProbeTarget):
Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/conf/storage_conf.c
src/conf/storage_conf.h
src/storage/storage_backend.c
src/storage/storage_backend.h
src/storage/storage_backend_fs.c