mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
parallels: commit with PVCF_DETACH_HDD_BUNDLE flag
PCS removes disk image from filesystem, if you remove it from config. There is a special flag PVCF_DETACH_HDD_BUNDLE which allow to remove disk only from VM/CT config. If you call virDomainDefine and remove some disk from config it should be preserved, so call PrlVm_CommitEx always with flag PVCF_DETACH_HDD_BUNDLE. Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
This commit is contained in:
parent
4bbd3b1e7e
commit
d86f2aa336
@ -2745,7 +2745,7 @@ prlsdkApplyConfig(virConnectPtr conn,
|
||||
ret = prlsdkDoApplyConfig(sdkdom, new);
|
||||
|
||||
if (ret == 0) {
|
||||
job = PrlVm_Commit(sdkdom);
|
||||
job = PrlVm_CommitEx(sdkdom, PVCF_DETACH_HDD_BUNDLE);
|
||||
if (PRL_FAILED(waitJob(job, privconn->jobTimeout)))
|
||||
ret = -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user