mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
parallels: treat block devices as disks for containers
We are going to add block devices as disks for containers not as filesystems. Signed-off-by: Maxim Nestratov <mnestratov@parallels.com>
This commit is contained in:
parent
3fd2dd5484
commit
67913bc6dc
@ -616,10 +616,16 @@ prlsdkAddDomainHardDisksInfo(PRL_HANDLE sdkdom, virDomainDefPtr def)
|
|||||||
prlsdkCheckRetGoto(pret, error);
|
prlsdkCheckRetGoto(pret, error);
|
||||||
|
|
||||||
for (i = 0; i < hddCount; ++i) {
|
for (i = 0; i < hddCount; ++i) {
|
||||||
|
|
||||||
|
PRL_UINT32 emulatedType;
|
||||||
|
|
||||||
pret = PrlVmCfg_GetHardDisk(sdkdom, i, &hdd);
|
pret = PrlVmCfg_GetHardDisk(sdkdom, i, &hdd);
|
||||||
prlsdkCheckRetGoto(pret, error);
|
prlsdkCheckRetGoto(pret, error);
|
||||||
|
|
||||||
if (IS_CT(def)) {
|
pret = PrlVmDev_GetEmulatedType(hdd, &emulatedType);
|
||||||
|
prlsdkCheckRetGoto(pret, error);
|
||||||
|
|
||||||
|
if (PDT_USE_REAL_DEVICE != emulatedType && IS_CT(def)) {
|
||||||
|
|
||||||
if (VIR_ALLOC(fs) < 0)
|
if (VIR_ALLOC(fs) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user