<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 15, 2016 at 11:33 PM, Ankireddypalle Reddy <span dir="ltr">&lt;<a target="_blank" href="mailto:areddy@commvault.com">areddy@commvault.com</a>&gt;</span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">





<div lang="EN-US">
<div class="gmail-m_-4237038757581151636WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)">Pranith,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)">                 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.
</span></p></div></div></blockquote><div><br></div><div>No, gfid is a UUID, so there is correlation. <a href="https://en.wikipedia.org/wiki/Universally_unique_identifier">https://en.wikipedia.org/wiki/Universally_unique_identifier</a> can help you I guess. Where did you see the above information that Parent gfid and name are involved?<br><br></div><div>PS: These kinds of mails people in gluster-devel are more suited to answer IMO.<br><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div lang="EN-US"><div class="gmail-m_-4237038757581151636WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)">Thanks and Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)">ram                 
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:&quot;tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10pt;font-family:&quot;tahoma&quot;,&quot;sans-serif&quot;"> Pranith Kumar Karampuri [mailto:<a target="_blank" href="mailto:pkarampu@redhat.com">pkarampu@redhat.com</a>]
<br>
<b>Sent:</b> Tuesday, November 15, 2016 12:58 PM<br>
<b>To:</b> Ankireddypalle Reddy<br>
<b>Cc:</b> <a target="_blank" href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
<b>Subject:</b> Re: [Gluster-users] gfid generation<u></u><u></u></span></p><div><div class="gmail-h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Sorry, didn&#39;t understand the question. Are you saying give a file on gluster how to get gfid of the file?<u></u><u></u></p>
</div>
<p class="MsoNormal">#getfattr -d -m. -e hex /path/to/file shows it<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Nov 11, 2016 at 9:47 PM, Ankireddypalle Reddy &lt;<a target="_blank" href="mailto:areddy@commvault.com">areddy@commvault.com</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal">        Is the mapping from file name to gfid an idempotent operation.  If so please point me to the function that does this.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks and Regards,<u></u><u></u></p>
<p class="MsoNormal">Ram     <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">***************************<wbr>Legal Disclaimer********************<wbr>*******<u></u><u></u></p>
<div>
<p class="MsoNormal">&quot;This communication may contain confidential and privileged material for the<u></u><u></u></p>
<div>
<p class="MsoNormal">sole use of the intended recipient. Any unauthorized review, use or distribution<u></u><u></u></p>
<div>
<p class="MsoNormal">by others is strictly prohibited. If you have received the message by mistake,<u></u><u></u></p>
<div>
<p class="MsoNormal">please advise the sender by reply email and delete the message. Thank you.&quot;<u></u><u></u></p>
<div>
<p class="MsoNormal">******************************<wbr>******************************<wbr>**********<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a target="_blank" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a target="_blank" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/<wbr>mailman/listinfo/gluster-users</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Pranith<u></u><u></u></p>
</div>
</div>
</div>
</div></div></div><div><div class="gmail-h5">
<div>***************************<wbr>Legal Disclaimer********************<wbr>*******<div>&quot;This communication may contain confidential and privileged material for the<div>sole use of the intended recipient. Any unauthorized review, use or distribution<div>by others is strictly prohibited. If you have received the message by mistake,<div>please advise the sender by reply email and delete the message. Thank you.&quot;<div>******************************<wbr>******************************<wbr>**********</div>

</div></div></div></div></div></div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div></div>