Commit
fff74b2 moved the probing into virStorageFileGetMetadataFromBuf
but didn't update the format in volume definition.
https://bugzilla.redhat.com/show_bug.cgi?id=
1104908
(cherry picked from commit
c110cdb2bcc9d29dafbc89d3edda16a824e9443d)
Conflicts:
src/storage/storage_backend_fs.c
I didn't backport the refactors -
febcb89 and
effbb11
if (VIR_STRDUP(*backingStore, meta->backingStoreRaw) < 0)
goto error;
+ target->format = meta->format;
}
VIR_FORCE_CLOSE(fd);
&vol->backingStore.format)))
goto cleanup;
+ vol->target.format = meta->format;
if (vol->backingStore.path &&
vol->backingStore.format < 0)
vol->backingStore.format = VIR_STORAGE_FILE_RAW;