Re: Reading GFID from libgfapi (unprivileged)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
<mailto:vbellur@xxxxxxxxxx>> 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@xxxxxxxxxx
https://lists.nongnu.org/mailman/listinfo/gluster-devel





[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux