|
|
9ae3a8 |
From ece4ff225717364edc3136599113709dacdc5731 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
Message-Id: <ece4ff225717364edc3136599113709dacdc5731.1383564115.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
In-Reply-To: <5575e0aec51f40ebec46e98ec085cda053283aba.1383564115.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
References: <5575e0aec51f40ebec46e98ec085cda053283aba.1383564115.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
From: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
Date: Thu, 31 Oct 2013 12:13:14 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 13/14] rbd: Only look for qemu-specific copy of librbd.so.1
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1383221595-24285-3-git-send-email-kwolf@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 55184
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.0 qemu-kvm PATCH 2/3] rbd: Only look for qemu-specific copy of librbd.so.1
|
|
|
9ae3a8 |
Bugzilla: 989608
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Fam Zheng <famz@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Bugzilla: 989608
|
|
|
9ae3a8 |
Upstream status: n/a
|
|
|
9ae3a8 |
Downstream status: Forward ported from RHEL 6
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
For non-technical reasons, we don't want to pick up a random librbd that
|
|
|
9ae3a8 |
may be installed for other reasons on this system, but only a librbd
|
|
|
9ae3a8 |
that was specificially installed in order to consciously extend qemu.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
So change the gmodule_open() argument to an absolute path.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
block/rbd.c | 2 +-
|
|
|
9ae3a8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Michal Novotny <minovotn@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
block/rbd.c | 2 +-
|
|
|
9ae3a8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/block/rbd.c b/block/rbd.c
|
|
|
9ae3a8 |
index 7f5cfca..7b6e03b 100644
|
|
|
9ae3a8 |
--- a/block/rbd.c
|
|
|
9ae3a8 |
+++ b/block/rbd.c
|
|
|
9ae3a8 |
@@ -1122,7 +1122,7 @@ static int qemu_rbd_load_libs(void)
|
|
|
9ae3a8 |
return -1;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
- librbd_handle = g_module_open("librbd.so.1", 0);
|
|
|
9ae3a8 |
+ librbd_handle = g_module_open("/usr/lib64/qemu/librbd.so.1", 0);
|
|
|
9ae3a8 |
if (!librbd_handle) {
|
|
|
9ae3a8 |
error_report("error loading librbd: %s", g_module_error());
|
|
|
9ae3a8 |
return -1;
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.11.7
|
|
|
9ae3a8 |
|