mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
storagefile: Fill in meta->externalDataStoreRaw
Call qcow2GetExtensions to actually fill in the virStorageSource externalDataStoreRaw member Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
b50adb40b2
commit
556f7c68a0
@ -1061,6 +1061,12 @@ virStorageFileGetMetadataInternal(virStorageSourcePtr meta,
|
||||
fileTypeInfo[meta->format].getFeatures(&meta->features, meta->format, buf, len) < 0)
|
||||
return -1;
|
||||
|
||||
VIR_FREE(meta->externalDataStoreRaw);
|
||||
if (meta->format == VIR_STORAGE_FILE_QCOW2 &&
|
||||
qcow2GetExtensions(buf, len, NULL, &meta->externalDataStoreRaw) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
VIR_FREE(meta->compat);
|
||||
if (meta->format == VIR_STORAGE_FILE_QCOW2 && meta->features &&
|
||||
VIR_STRDUP(meta->compat, "1.1") < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user