From 67913bc6dce063b7d6d16abda5b5e8b3c6bc1f78 Mon Sep 17 00:00:00 2001 From: Maxim Nestratov Date: Thu, 4 Jun 2015 00:10:00 +0300 Subject: [PATCH] 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 --- src/parallels/parallels_sdk.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/parallels/parallels_sdk.c b/src/parallels/parallels_sdk.c index e6d3fd9253..4d5099ced1 100644 --- a/src/parallels/parallels_sdk.c +++ b/src/parallels/parallels_sdk.c @@ -616,10 +616,16 @@ prlsdkAddDomainHardDisksInfo(PRL_HANDLE sdkdom, virDomainDefPtr def) prlsdkCheckRetGoto(pret, error); for (i = 0; i < hddCount; ++i) { + + PRL_UINT32 emulatedType; + pret = PrlVmCfg_GetHardDisk(sdkdom, i, &hdd); 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) goto error;