From: John Ferlan Date: Thu, 5 Oct 2017 13:22:09 +0000 (-0400) Subject: util: storage: Introduce privateData for _virStorageSource X-Git-Tag: v3.9.0-rc1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f38445e43ee50cd6761d17b9f4dabca9796434a;p=thirdparty%2Flibvirt.git util: storage: Introduce privateData for _virStorageSource Introduce the bare necessities to add privateData to _virStorageSource. Signed-off-by: John Ferlan Signed-off-by: Peter Krempa --- diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index d2b21a8169..d88183591d 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -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); diff --git a/src/util/virstoragefile.h b/src/util/virstoragefile.h index 1e36a6671e..2f56aea1d4 100644 --- a/src/util/virstoragefile.h +++ b/src/util/virstoragefile.h @@ -27,6 +27,7 @@ # include # 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 */