[Gluster-devel] Reading GFID from libgfapi (unprivileged)

Louis Zuckerman me at louiszuckerman.com
Wed Jul 10 13:15:38 UTC 2013


Hi Avati,

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.

The code is on github and I'm mirroring it to the gluster forge.  Here are
the links:

https://github.com/semiosis/glusterfs-java-filesystem (
https://forge.gluster.org/glusterfs-java-filesystem)

https://github.com/semiosis/libgfapi-jni (
https://forge.gluster.org/libgfapi-jni)

I'm most interested in the filesystem provider interface, so I'm developing
the JNI library in step with that rather than trying to build a full JNI
library all at once.  I'm also doing test driven development as much as
possible and have very high test coverage for all the code.  I haven't
quantified the coverage yet but I plan to run Sonar (
http://www.sonarsource.com/) on the projects soon to get detailed code
quality reports.

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't seen it I recommend you check it out:
http://hawtjni.fusesource.org/documentation/developer-guide.html

I'm looking forward to checking out your code, thanks for the link.  I'm in
IRC most days if you want to chat there, email works too of course.

Best regards,

-louis (semiosis)


On Wed, Jul 10, 2013 at 2:26 AM, Anand Avati <anand.avati at gmail.com> wrote:

> Louis,
>  I am guessing you might be working on Java bindings? There has some work
> already happened here - https://github.com/avati/glusterfs/commits/java.
> It will be great if we can collaborate. Copying Brad who is also looking
> into Java bindings for gfapi.
>
> Avati
>
>
> On Tue, Jul 9, 2013 at 10:29 PM, Louis Zuckerman <me at louiszuckerman.com>wrote:
>
>> That's great!  Also Joe Julian just chatted me on IRC that the inode
>> number from glfs_lstat might be the GFID.  I'm going to implement that for
>> now.  Does that sound right to you?
>>
>> Thanks!
>>
>>
>> On Wed, Jul 10, 2013 at 1:26 AM, Vijay Bellur <vbellur at redhat.com> wrote:
>>
>>> On 07/10/2013 09:45 AM, Louis Zuckerman wrote:
>>>
>>>> In order to implement the following I need to read the GFID of a file
>>>> through libgfapi from an unprivileged client process.
>>>>
>>>> http://docs.oracle.com/javase/**7/docs/api/java/nio/file/**
>>>> attribute/BasicFileAttributes.**html#fileKey()<http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/BasicFileAttributes.html#fileKey()>
>>>>
>>>> I know of no way to do this.  Is it possible?
>>>>
>>>>
>>> This patch under review might help:
>>>
>>> http://review.gluster.org/#/c/**5129/<http://review.gluster.org/#/c/5129/>
>>>
>>> -Vijay
>>>
>>>
>>
>> _______________________________________________
>> Gluster-devel mailing list
>> Gluster-devel at nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/gluster-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20130710/6f0fbf8d/attachment-0001.html>


More information about the Gluster-devel mailing list