[libvirt] [PATCH 0/3] Add stateDir for storage driver and use for disk backend

John Ferlan jferlan at redhat.com
Tue Jan 13 21:12:29 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1138516

Using the network (and domain) for reference, add a 'stateDir' for the
Storage Driver in order to save off pool and/or volume specific information
into a live running area.

This is useful for the disk backend where volume creation can define a
specific name and target format type to use; however, that information
cannot be encoded into the 'parted' data used to create the partition(s)
on the disk.  Thus the data is lost for refresh and restart/reload.

The following patches will add the stateDir, then the infrastructure for
storage volume xml to be saved off, and finally saving/using that data
for the refresh, restart/reload path for the disk backend driver.

John Ferlan (3):
  storage: Create a stateDir
  storage: Introduce virStorageVol{Save|Delete}Status
  storage: Adjustments to disk backend to use stateDir

 src/conf/storage_conf.c            | 112 +++++++++++++++++++++++++++++++++----
 src/conf/storage_conf.h            |  13 ++++-
 src/libvirt_private.syms           |   2 +
 src/parallels/parallels_storage.c  |   5 +-
 src/storage/storage_backend_disk.c |  90 ++++++++++++++++++++++++++++-
 src/storage/storage_driver.c       |  32 +++++++++--
 6 files changed, 232 insertions(+), 22 deletions(-)

-- 
2.1.0




More information about the libvir-list mailing list