[Gluster-devel] Reading GFID from libgfapi (unprivileged)
Vijay Bellur
vbellur at redhat.com
Wed Jul 10 17:28:02 UTC 2013
On 07/10/2013 10:59 AM, Louis Zuckerman 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?
The inode number from glfs_lstat is not the GFID. ino in stbuf is
usually 64 bits and gfid is a 128 bit value. However if you are looking
at an unique identifier for a file, looking at ino from stat should be fine.
-Vijay
>
> Thanks!
>
>
> On Wed, Jul 10, 2013 at 1:26 AM, Vijay Bellur <vbellur at redhat.com
> <mailto: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
>
More information about the Gluster-devel
mailing list