Re: Determining libgfapi/glusterfs version

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

 



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 <vbellur@xxxxxxxxxx> 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
Gluster-devel@xxxxxxxxxx
https://lists.nongnu.org/mailman/listinfo/gluster-devel


[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux