diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c index 003c6df4b38e78221e45ba9a1dccb476391dc4fd..5099a1cb2ff301a8e64c63c9b1d88f2e27607fe6 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 af6792fb1465505b55a47bdef1c73fbfa817ff1c..c147c2da932a2dc04e52c2861886c37fdaef32b9 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;