diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c index 003c6df4b3..5099a1cb2f 100644 --- a/src/storage/storage_backend_fs.c +++ b/src/storage/storage_backend_fs.c @@ -100,6 +100,7 @@ virStorageBackendProbeTarget(virStorageSourcePtr target, if (VIR_STRDUP(*backingStore, meta->backingStoreRaw) < 0) goto error; + target->format = meta->format; } VIR_FORCE_CLOSE(fd); diff --git a/src/storage/storage_backend_gluster.c b/src/storage/storage_backend_gluster.c index af6792fb14..c147c2da93 100644 --- a/src/storage/storage_backend_gluster.c +++ b/src/storage/storage_backend_gluster.c @@ -298,6 +298,7 @@ virStorageBackendGlusterRefreshVol(virStorageBackendGlusterStatePtr state, &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;