def->relPath = g_strdup(src->relPath);
def->backingStoreRaw = g_strdup(src->backingStoreRaw);
def->backingStoreRawFormat = src->backingStoreRawFormat;
+ def->dataFileRaw = g_strdup(src->dataFileRaw);
def->snapshot = g_strdup(src->snapshot);
def->configFile = g_strdup(src->configFile);
def->nodenameformat = g_strdup(src->nodenameformat);
return NULL;
}
+ if (src->dataFileStore) {
+ if (!(def->dataFileStore = virStorageSourceCopy(src->dataFileStore,
+ false)))
+ return NULL;
+ }
+
if (src->fdtuple)
def->fdtuple = g_object_ref(src->fdtuple);
VIR_FREE(def->nodenamestorage);
VIR_FREE(def->nodenameformat);
+ VIR_FREE(def->dataFileRaw);
+ g_clear_pointer(&def->dataFileStore, virObjectUnref);
+
virStorageSourceBackingStoreClear(def);
VIR_FREE(def->tlsAlias);
/* backing chain of the storage source */
virStorageSource *backingStore;
+ /* qcow2 data file source */
+ virStorageSource *dataFileStore;
+
/* metadata for storage driver access to remote and local volumes */
void *drv;
/* Name of the child backing store recorded in metadata of the
* current file. */
char *backingStoreRaw;
+ char *dataFileRaw;
virStorageFileFormat backingStoreRawFormat;
/* metadata that allows identifying given storage source */