Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libvirt
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libvirt Packaging Team
libvirt
Commits
3d3f3956
Commit
3d3f3956
authored
14 years ago
by
Guido Günther
Browse files
Options
Downloads
Patches
Plain Diff
New patch 0012-penVZ-Fix-some-overwritten-error-codes.patch
OpenVZ: Fix some overwritten error codes
parent
91a1b8d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/0012-OpenVZ-Fix-some-overwritten-error-codes.patch
+55
-0
55 additions, 0 deletions
...atches/0012-OpenVZ-Fix-some-overwritten-error-codes.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
56 additions
and
0 deletions
debian/patches/0012-OpenVZ-Fix-some-overwritten-error-codes.patch
0 → 100644
+
55
−
0
View file @
3d3f3956
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Wed, 1 Dec 2010 15:06:18 +0100
Subject: [PATCH] OpenVZ: Fix some overwritten error codes
Don't overwrite errors during domain creation/definition to ease
tracking down problems.
Origin: upstream, http://libvirt.org/git/?p=libvirt.git;a=commit;h=2d626c7d08b0b815155b93065d466ba89dfb82f7
---
src/openvz/openvz_driver.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c
index 556df52..698d0e6 100644
--- a/src/openvz/openvz_driver.c
+++ b/src/openvz/openvz_driver.c
@@ -57,6 +57,7 @@
#include "nodeinfo.h"
#include "memory.h"
#include "bridge.h"
+#include "logging.h"
#define VIR_FROM_THIS VIR_FROM_OPENVZ
@@ -209,8 +210,7 @@
static int openvzSetInitialConfig(virDomainDefPtr vmdef)
else
{
if (openvzDomainDefineCmd(prog, OPENVZ_MAX_ARG, vmdef) < 0) {
- openvzError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Error creating command for container"));
+ VIR_ERROR0(_("Error creating command for container"));
goto cleanup;
}
@@ -870,8 +870,7 @@
openvzDomainDefineXML(virConnectPtr conn, const char *xml)
vm->persistent = 1;
if (openvzSetInitialConfig(vm->def) < 0) {
- openvzError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Error creating initial configuration"));
+ VIR_ERROR0(_("Error creating initial configuration"));
goto cleanup;
}
@@ -954,8 +953,7 @@
openvzDomainCreateXML(virConnectPtr conn, const char *xml,
vm->persistent = 1;
if (openvzSetInitialConfig(vm->def) < 0) {
- openvzError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Error creating initial configuration"));
+ VIR_ERROR0(_("Error creating initial configuration"));
goto cleanup;
}
--
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
3d3f3956
...
...
@@ -9,3 +9,4 @@
0009-Don-t-fail-lxc-domain-start-when-memory-controller-s.patch
0010-nwfilter-resolve-deadlock-between-VM-operations-and-.patch
0011-OpenVZ-take-veid-from-vmdef-name-when-defining-new-d.patch
0012-OpenVZ-Fix-some-overwritten-error-codes.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment