util: storage: Introduce privateData for _virStorageSource

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>
This commit is contained in:
John Ferlan 2017-10-05 09:22:09 -04:00 committed by Peter Krempa
parent 76a5ca62fb
commit 1f38445e43
2 changed files with 4 additions and 0 deletions

View 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);

View 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 */