]> xenbits.xensource.com Git - libvirt.git/commitdiff
Revert "vz: handle sourceless cdroms"
authorMaxim Nestratov <mnestratov@virtuozzo.com>
Tue, 17 May 2016 12:11:35 +0000 (15:11 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Tue, 17 May 2016 12:11:35 +0000 (15:11 +0300)
This reverts commit 071fe092.
It was committed by a mistake and correct patch was committed
earlier as baad90fb.

src/vz/vz_sdk.c

index 4fe9bfa5c03be7bad9348fa6e18ed6f77e1411fd..b8943dbd33be8e7eafc65757948cbb503b56294c 100644 (file)
@@ -3216,13 +3216,11 @@ static int prlsdkAddDisk(vzDriverPtr driver,
     pret = PrlVmDev_SetEmulatedType(sdkdisk, emutype);
     prlsdkCheckRetGoto(pret, cleanup);
 
-    if (disk->src->path) {
-        pret = PrlVmDev_SetSysName(sdkdisk, path);
-        prlsdkCheckRetGoto(pret, cleanup);
+    pret = PrlVmDev_SetSysName(sdkdisk, path);
+    prlsdkCheckRetGoto(pret, cleanup);
 
-        pret = PrlVmDev_SetFriendlyName(sdkdisk, path);
-        prlsdkCheckRetGoto(pret, cleanup);
-    }
+    pret = PrlVmDev_SetFriendlyName(sdkdisk, path);
+    prlsdkCheckRetGoto(pret, cleanup);
 
     drive = &disk->info.addr.drive;
     if (drive->controller > 0) {