[libvirt] [PATCH] parallels: use SDK disks system names for paths

Nikolay Shirokovskiy nshirokovskiy at parallels.com
Mon Apr 20 06:26:38 UTC 2015


For block devices SDK friendly name do not
refer to block device path but rather some
description while system name refer to
device path.

For ploop devices both names refer to
image path.

Thus system name is better choice.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at parallels.com>
---
 src/parallels/parallels_sdk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/parallels/parallels_sdk.c b/src/parallels/parallels_sdk.c
index 80e9d00..4911ab7 100644
--- a/src/parallels/parallels_sdk.c
+++ b/src/parallels/parallels_sdk.c
@@ -491,7 +491,7 @@ prlsdkGetDiskInfo(PRL_HANDLE prldisk,
     if (VIR_ALLOC_N(buf, buflen) < 0)
         goto cleanup;
 
-    pret = PrlVmDev_GetFriendlyName(prldisk, buf, &buflen);
+    pret = PrlVmDev_GetSysName(prldisk, buf, &buflen);
     prlsdkCheckRetGoto(pret, cleanup);
 
     if (virDomainDiskSetSource(disk, buf) < 0)
-- 
1.7.1




More information about the libvir-list mailing list