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
a6fae3d5
Commit
a6fae3d5
authored
12 years ago
by
Guido Günther
Browse files
Options
Downloads
Patches
Plain Diff
Define SANLK_INQ_WAIT if missing in headers
parent
f6722064
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/Define-SANLK_INQ_WAIT-if-missing-in-headers.patch
+23
-0
23 additions, 0 deletions
...patches/Define-SANLK_INQ_WAIT-if-missing-in-headers.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
24 additions
and
0 deletions
debian/patches/Define-SANLK_INQ_WAIT-if-missing-in-headers.patch
0 → 100644
+
23
−
0
View file @
a6fae3d5
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Thu, 13 Dec 2012 17:21:54 +0100
Subject: Define SANLK_INQ_WAIT if missing in headers
so we can build with older sanlock (like 2.2)
---
src/locking/lock_driver_sanlock.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/locking/lock_driver_sanlock.c b/src/locking/lock_driver_sanlock.c
index 430e11e..84f81ec 100644
--- a/src/locking/lock_driver_sanlock.c
+++ b/src/locking/lock_driver_sanlock.c
@@ -338,6 +338,9 @@
retry:
if ((rv = sanlock_add_lockspace(&ls, 0)) < 0) {
if (-rv == EINPROGRESS) {
#ifdef HAVE_SANLOCK_INQ_LOCKSPACE
+# ifndef SANLK_INQ_WAIT
+# define SANLK_INQ_WAIT 0x00000001
+# endif
/* we have this function which blocks until lockspace change the
* state. It returns 0 if lockspace has been added, -ENOENT if it
* hasn't. XXX should we goto retry? */
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
a6fae3d5
...
...
@@ -10,3 +10,4 @@ Don-t-fail-if-we-can-t-setup-avahi.patch
Reduce-udevadm-settle-timeout-to-10-seconds.patch
debian/Debianize-systemd-service-files.patch
Allow-xen-toolstack-to-find-it-s-binaries.patch
Define-SANLK_INQ_WAIT-if-missing-in-headers.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