gluster-devel
[Top][All Lists]
Advanced

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

Re: [Gluster-devel] Determining libgfapi/glusterfs version


From: Anand Avati
Subject: Re: [Gluster-devel] Determining libgfapi/glusterfs version
Date: Mon, 3 Jun 2013 08:42:56 -0700

This looks more like a compile time feature check than runtime. The PKG_CONFIG() api number which had the initial set of QEMU requirements was 3 (i.e, PKG_CONFIG(..,glusterfs-api>=3,..). The new updates for Samba requirements has api number 4. Depending on whether discard support makes it before the next release (and api numbers gets published) or not, glfs_discard() would either be available in 4 or 5. Also, you might also want to add a second AC_CHECK_FUNC macro in configure.ac to be doubly sure.

Avati


On Mon, Jun 3, 2013 at 1:52 AM, Vijay Bellur <address@hidden> wrote:
On 05/31/2013 10:10 PM, Bharata B Rao wrote:
Hi,

What is the best way to determine if I am running (or linked to) a
particular version of libgfapi/glusterfs ?

This would be a runtime determination, right? We are evolving versions for libgfapi that is independent of the package version.

http://review.gluster.org/#/c/4932/




Requirement: If I want to support the use of glfs_discard() from QEMU,
I should be doing it only if QEMU is linked to a version of libgfapi
that supports glfs_discard().


Maybe a new api glfs_get_version() can be evolved to determine libgfapi capability at runtime?

Regards,
Vijay




_______________________________________________
Gluster-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gluster-devel


reply via email to

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