]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: storage: Introduce privateData for _virStorageSource
authorJohn Ferlan <jferlan@redhat.com>
Thu, 5 Oct 2017 13:22:09 +0000 (09:22 -0400)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 19 Oct 2017 16:20:30 +0000 (18:20 +0200)
Introduce the bare necessities to add privateData to _virStorageSource.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/util/virstoragefile.c
src/util/virstoragefile.h

index d2b21a81693efd5f70441cf037420f8825d91fce..d88183591d4ab25c8e1a093b422db345d0768a89 100644 (file)
@@ -2295,6 +2295,7 @@ virStorageSourceClear(virStorageSourcePtr def)
 
     virStorageNetHostDefFree(def->nhosts, def->hosts);
     virStorageAuthDefFree(def->auth);
+    virObjectUnref(def->privateData);
 
     VIR_FREE(def->nodestorage);
     VIR_FREE(def->nodeformat);
index 1e36a6671e8b37f418aa0c9412c5750063261a6b..2f56aea1d41f9ab2b2384ed64b35f47a07b05a20 100644 (file)
@@ -27,6 +27,7 @@
 # include <sys/stat.h>
 
 # include "virbitmap.h"
+# include "virobject.h"
 # include "virseclabel.h"
 # include "virstorageencryption.h"
 # include "virutil.h"
@@ -241,6 +242,8 @@ struct _virStorageSource {
     virStorageAuthDefPtr auth;
     virStorageEncryptionPtr encryption;
 
+    virObjectPtr privateData;
+
     char *driverName;
     int format; /* virStorageFileFormat in domain backing chains, but
                  * pool-specific enum for storage volumes */