[libvirt] [PATCH] vz: support disabled items in prlsdk boot order

Nikolay Shirokovskiy posted 1 patch 116 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1498735547-987450-1-git-send-email-nshirokovskiy@virtuozzo.com
src/vz/vz_sdk.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)

[libvirt] [PATCH] vz: support disabled items in prlsdk boot order

Posted by Nikolay Shirokovskiy 116 weeks ago
---
 src/vz/vz_sdk.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
index 8ccd7ea..a6eb0dd 100644
--- a/src/vz/vz_sdk.c
+++ b/src/vz/vz_sdk.c
@@ -1736,11 +1736,8 @@ prlsdkConvertBootOrderVm(PRL_HANDLE sdkdom, virDomainDefPtr def)
         pret = PrlBootDev_IsInUse(bootDev, &inUse);
         prlsdkCheckRetGoto(pret, cleanup);
 
-        if (!inUse) {
-            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                           _("Boot ordering with disabled items is not supported"));
-            goto cleanup;
-        }
+        if (!inUse)
+            continue;
 
         pret = PrlBootDev_GetSequenceIndex(bootDev, &bootIndex);
         prlsdkCheckRetGoto(pret, cleanup);
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] vz: support disabled items in prlsdk boot order

Posted by Peter Krempa 116 weeks ago
On Thu, Jun 29, 2017 at 14:25:47 +0300, Nikolay Shirokovskiy wrote:

Some explanation why you are making this change would be great.

> ---
>  src/vz/vz_sdk.c | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list