qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 2/2] rbd: link and load librbd dynamically


From: Alex Bligh
Subject: Re: [Qemu-devel] [PATCH v3 2/2] rbd: link and load librbd dynamically
Date: Fri, 21 Jun 2013 20:08:31 +0100



--On 21 June 2013 11:42:34 -0700 Sage Weil <address@hidden> wrote:

Has any progress been made toward a generic dynamic linking solution for
block drivers?  It is a conceptually simple change, but non-trivial for
anyone unfamiliar with the build system.

In the mean time, the inability to dynamically link librbd is continuing
to cause significant pain for distro users.  Would you consider merging
the rbd-specific linking as an interim solution until something is
generically available to qemu?

FWIW I have this implemented here:
https://github.com/flexiant/qemu/commits/v1.0-rbd-add-async-flush

specifically this commit:
https://github.com/flexiant/qemu/commit/6fa2e9c95bdaca7c814881e27f04424fb6cc
2960

This is a backport of qemu 1.5's librbd to qemu 1.0 (which is slighly
confusing) but the #pragma weak technique is basically the same.

I had to use a slightly different technique to Josh's original version
to get it to compile with old includes and still run with a new
library, as well as vice versa.

It would take me only a few minutes to bring this back as a patch for
1.5 if anyone is interested. I assumed they would not be.

--
Alex Bligh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]