Fix storage format probing
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
This commit is contained in:
parent
effbb11e29
commit
c110cdb2bc
@ -104,6 +104,8 @@ virStorageBackendProbeTarget(virStorageSourcePtr target,
|
|||||||
/* Default to success below this point */
|
/* Default to success below this point */
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
|
target->format = meta->format;
|
||||||
|
|
||||||
if (*backingStore &&
|
if (*backingStore &&
|
||||||
*backingStoreFormat == VIR_STORAGE_FILE_AUTO &&
|
*backingStoreFormat == VIR_STORAGE_FILE_AUTO &&
|
||||||
virStorageIsFile(*backingStore)) {
|
virStorageIsFile(*backingStore)) {
|
||||||
|
@ -298,6 +298,7 @@ virStorageBackendGlusterRefreshVol(virStorageBackendGlusterStatePtr state,
|
|||||||
&vol->backingStore.format)))
|
&vol->backingStore.format)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
vol->target.format = meta->format;
|
||||||
if (vol->backingStore.path &&
|
if (vol->backingStore.path &&
|
||||||
vol->backingStore.format < 0)
|
vol->backingStore.format < 0)
|
||||||
vol->backingStore.format = VIR_STORAGE_FILE_RAW;
|
vol->backingStore.format = VIR_STORAGE_FILE_RAW;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user