[Gluster-users] gfid generation

Pranith Kumar Karampuri pkarampu at redhat.com
Tue Nov 15 18:19:04 UTC 2016


On Tue, Nov 15, 2016 at 11:33 PM, Ankireddypalle Reddy <areddy at commvault.com
> wrote:

> Pranith,
>
>                  Thanks for getting back on this. I am trying to see how
> gfid can be generated programmatically. Given a file name how do we
> generate gfid for it. I was reading some of the email threads about it
> where it was mentioned that gfid is generated based upon parent directory
> gfid and the file name. Given a same parent gfid and file name do we always
> end up with the same gfid.
>

No, gfid is a UUID, so there is correlation.
https://en.wikipedia.org/wiki/Universally_unique_identifier can help you I
guess. Where did you see the above information that Parent gfid and name
are involved?

PS: These kinds of mails people in gluster-devel are more suited to answer
IMO.


>
> Thanks and Regards,
>
> ram
>
>
>
> *From:* Pranith Kumar Karampuri [mailto:pkarampu at redhat.com]
> *Sent:* Tuesday, November 15, 2016 12:58 PM
> *To:* Ankireddypalle Reddy
> *Cc:* gluster-users at gluster.org
> *Subject:* Re: [Gluster-users] gfid generation
>
>
>
> Sorry, didn't understand the question. Are you saying give a file on
> gluster how to get gfid of the file?
>
> #getfattr -d -m. -e hex /path/to/file shows it
>
>
>
> On Fri, Nov 11, 2016 at 9:47 PM, Ankireddypalle Reddy <
> areddy at commvault.com> wrote:
>
> Hi,
>
>         Is the mapping from file name to gfid an idempotent operation.  If
> so please point me to the function that does this.
>
>
>
> Thanks and Regards,
>
> Ram
>
> ***************************Legal Disclaimer***************************
>
> "This communication may contain confidential and privileged material for
> the
>
> sole use of the intended recipient. Any unauthorized review, use or
> distribution
>
> by others is strictly prohibited. If you have received the message by
> mistake,
>
> please advise the sender by reply email and delete the message. Thank you."
>
> **********************************************************************
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
>
>
>
>
> --
>
> Pranith
> ***************************Legal Disclaimer***************************
> "This communication may contain confidential and privileged material for
> the
> sole use of the intended recipient. Any unauthorized review, use or
> distribution
> by others is strictly prohibited. If you have received the message by
> mistake,
> please advise the sender by reply email and delete the message. Thank you."
> **********************************************************************
>



-- 
Pranith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20161115/c76b2541/attachment.html>


More information about the Gluster-users mailing list