mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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:
parent
76a5ca62fb
commit
1f38445e43
@ -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);
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user