<div dir="ltr">Hi Avati,<div><br></div><div>Yes about a week or two ago I started two projects, a JNI interface to libgfapi (built with HawtJNI, with help from Hiram Chirino) and a filesystem service provider based on the JNI library.</div>

<div><br></div><div>The code is on github and I&#39;m mirroring it to the gluster forge.  Here are the links:</div><div><br></div><div><a href="https://github.com/semiosis/glusterfs-java-filesystem">https://github.com/semiosis/glusterfs-java-filesystem</a> (<a href="https://forge.gluster.org/glusterfs-java-filesystem">https://forge.gluster.org/glusterfs-java-filesystem</a>)</div>

<div><br></div><div><a href="https://github.com/semiosis/libgfapi-jni">https://github.com/semiosis/libgfapi-jni</a> (<a href="https://forge.gluster.org/libgfapi-jni">https://forge.gluster.org/libgfapi-jni</a>)</div><div>
<br>
</div><div>I&#39;m most interested in the filesystem provider interface, so I&#39;m developing the JNI library in step with that rather than trying to build a full JNI library all at once.  I&#39;m also doing test driven development as much as possible and have very high test coverage for all the code.  I haven&#39;t quantified the coverage yet but I plan to run Sonar (<a href="http://www.sonarsource.com/">http://www.sonarsource.com/</a>) on the projects soon to get detailed code quality reports.</div>

<div><br></div><div>Chirino hangs out in #gluster IRC and he maintains the HawtJNI project, which is a JNI interface generator with great Maven support.  If you haven&#39;t seen it I recommend you check it out: <a href="http://hawtjni.fusesource.org/documentation/developer-guide.html">http://hawtjni.fusesource.org/documentation/developer-guide.html</a></div>

<div><br></div><div>I&#39;m looking forward to checking out your code, thanks for the link.  I&#39;m in IRC most days if you want to chat there, email works too of course.</div><div><br></div><div>Best regards,</div><div>

<br></div><div>-louis (semiosis)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 2:26 AM, Anand Avati <span dir="ltr">&lt;<a href="mailto:anand.avati@gmail.com" target="_blank">anand.avati@gmail.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 dir="ltr">Louis,<div> I am guessing you might be working on Java bindings? There has some work already happened here - <a href="https://github.com/avati/glusterfs/commits/java" target="_blank">https://github.com/avati/glusterfs/commits/java</a>. It will be great if we can collaborate. Copying Brad who is also looking into Java bindings for gfapi.</div>


<div><br></div><div>Avati</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Tue, Jul 9, 2013 at 10:29 PM, Louis Zuckerman <span dir="ltr">&lt;<a href="mailto:me@louiszuckerman.com" target="_blank">me@louiszuckerman.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.571428298950195px">That&#39;s great!  Also Joe Julian just chatted me on IRC that the inode number from glfs_lstat might be the GFID.  I&#39;m going to implement that for now.  Does that sound right to you?</span><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">




<br></div><div style="font-family:arial,sans-serif;font-size:12.571428298950195px">Thanks!</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 1:26 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><div>On 07/10/2013 09:45 AM, Louis Zuckerman wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In order to implement the following I need to read the GFID of a file<br>
through libgfapi from an unprivileged client process.<br>
<br>
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/BasicFileAttributes.html#fileKey()" target="_blank">http://docs.oracle.com/javase/<u></u>7/docs/api/java/nio/file/<u></u>attribute/BasicFileAttributes.<u></u>html#fileKey()</a><br>





<br>
I know of no way to do this.  Is it possible?<br>
<br>
</blockquote>
<br></div></div>
This patch under review might help:<br>
<br>
<a href="http://review.gluster.org/#/c/5129/" target="_blank">http://review.gluster.org/#/c/<u></u>5129/</a><span><font color="#888888"><br>
<br>
-Vijay<br>
<br>
</font></span></blockquote></div><br></div>
</div></div><br></div></div>_______________________________________________<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/mailman/listinfo/gluster-devel</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>