|
From: | Vijay Bellur |
Subject: | Re: [Gluster-devel] Reading GFID from libgfapi (unprivileged) |
Date: | Wed, 10 Jul 2013 22:58:02 +0530 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
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 <address@hidden <mailto:address@hidden>> 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 address@hidden https://lists.nongnu.org/mailman/listinfo/gluster-devel
[Prev in Thread] | Current Thread | [Next in Thread] |