<div dir="ltr">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&gt;=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 <a href="http://configure.ac">configure.ac</a> to be doubly sure.<div>
<br></div><div>Avati</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 1:52 AM, Vijay Bellur <span dir="ltr">&lt;<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 05/31/2013 10:10 PM, Bharata B Rao wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
What is the best way to determine if I am running (or linked to) a<br>
particular version of libgfapi/glusterfs ?<br>
</blockquote>
<br></div>
This would be a runtime determination, right? We are evolving versions for libgfapi that is independent of the package version.<br>
<br>
<a href="http://review.gluster.org/#/c/4932/" target="_blank">http://review.gluster.org/#/c/<u></u>4932/</a><div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Requirement: If I want to support the use of glfs_discard() from QEMU,<br>
I should be doing it only if QEMU is linked to a version of libgfapi<br>
that supports glfs_discard().<br>
<br>
</blockquote>
<br></div>
Maybe a new api glfs_get_version() can be evolved to determine libgfapi capability at runtime?<br>
<br>
Regards,<br>
Vijay<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org" target="_blank">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/<u></u>mailman/listinfo/gluster-devel</a><br>
</div></div></blockquote></div><br></div>