mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
storage: Fix type PLOOP type check for storageVolUpload
Commit id '03e750f3' added support for checking the PLOOP type; however, it used 'target.type' which no storage code ever fills in, so it will never be set. Change to just vol->type (could use vol->target.format as well).
This commit is contained in:
parent
36d9965af0
commit
d3bba70771
@ -2427,7 +2427,7 @@ storageVolUpload(virStorageVolPtr obj,
|
||||
if (VIR_ALLOC(cbdata) < 0 ||
|
||||
VIR_STRDUP(cbdata->pool_name, pool->def->name) < 0)
|
||||
goto cleanup;
|
||||
if (vol->target.type == VIR_STORAGE_VOL_PLOOP &&
|
||||
if (vol->type == VIR_STORAGE_VOL_PLOOP &&
|
||||
VIR_STRDUP(cbdata->vol_path, vol->target.path) < 0)
|
||||
goto cleanup;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user