From: Alex Bligh Subject: Re: [PATCH v3 2/2] rbd: link and load librbd dynamically Date: Fri, 21 Jun 2013 20:08:31 +0100 Message-ID: <4786AD87B0A2E9AAE51398B6@nimrod.local> References: <20130405093124.GA2351@dhcp-200-207.str.redhat.com> <1365552342-22840-1-git-send-email-josh.durgin@inktank.com> <87ip3uctjv.fsf@codemonkey.ws> Reply-To: Alex Bligh Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Sage Weil , Anthony Liguori Cc: Kevin Wolf , Alex Bligh , Stefan Hajnoczi , qemu-devel , Stefan Hajnoczi , Josh Durgin , Paolo Bonzini , ceph-devel@vger.kernel.org List-Id: ceph-devel.vger.kernel.org --On 21 June 2013 11:42:34 -0700 Sage Weil 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