On the backend to create the link file gluster does mknod (2)<div><br></div><div>try below operation on zfs-fuse.</div><div><br></div><div>ret = mkdir (path, S_IFREG | S_ISVTX, 0);</div><div><br></div><div>see whats the behavior.</div>
<div><br></div><div>Regards,</div><div>Amar<br><br><div class="gmail_quote">On Tue, May 31, 2011 at 3:20 PM, 劉效飛 <span dir="ltr">&lt;<a href="mailto:f92019@csie.ntu.edu.tw">f92019@csie.ntu.edu.tw</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>I tried the chmod command and fchmod(fd, S_ISVTX) system call.<br>In both way I can successfully set the sticky bit in zfs-fuse.<br>
<br>What may be the reason glusterFS failed to set the sticky bit?<br><br>Thank you.  <br>
<br><br> Ken<div><div></div><div class="h5"><br><br><div class="gmail_quote">2011/5/31 Amar Tumballi <span dir="ltr">&lt;<a href="mailto:amar@gluster.com" target="_blank">amar@gluster.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

No problem.. thanks for trying out different backend... please get that &#39;chmod 01000 file&#39; issue fixed in zfs-fuse.. it may work as backend for glusterfs.<div><br></div><div><font color="#888888">-Amar</font><div>

<div></div><div><br><br><div class="gmail_quote">On Tue, May 31, 2011 at 11:27 AM, 劉效飛 <span dir="ltr">&lt;<a href="mailto:f92019@csie.ntu.edu.tw" target="_blank">f92019@csie.ntu.edu.tw</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you for the detailed answer! <br><br><div class="gmail_quote"><div><div></div><div>2011/5/31 Amar Tumballi <span dir="ltr">&lt;<a href="mailto:amar@gluster.com" target="_blank">amar@gluster.com</a>&gt;</span><br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
<div class="gmail_quote"><div>Hi Ken,</div><div><br></div><div>Find the answers inline.</div><div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div class="gmail_quote"><div>I installed glusterfs (version 3.1.3) with zfs-fuse (0.6.9) as the underlying filesystem.<br><br></div>After renaming a file, I found the file is duplicated.<div><br></div>
</div></blockquote></div><div>As per the details given below, that is possible.</div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote">
<div>
<br>Is any way to fix this problem?<br></div></div></blockquote><div><br></div></div><div>Use a posix complaint filesystem as the backend.</div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div class="gmail_quote"><div><br>BTW, I found the ACL list of test1.cc in /tank/exp2 looks different:<br><span style="background-color:rgb(255, 204, 102)">----------  1 root root 0 2011-05-31 11:38 test1.cc</span><br>




If I use ext4 as the underlying filesystem, the ACL list will look like:<br></div><span style="background-color:rgb(255, 204, 102)"><div>---------T 1 root root 0 2011-05-31 11:38 test1.cc<br><br></div><span><span style="background-color:rgb(255, 255, 255)">I&#39;m wondering what does the character &#39;T&#39; in the ACL list mean. <br>




<div>
Is it related to the problem?<br>


<br></div></span></span></span></div></blockquote><div><br></div></div><div>Yes. That is the reason of the problem. The character &#39;T&#39; in the ACL list means its having a stickybit set. (perm 01000). We treat files with permission 01000 (ie, ---------T type) as link files in &#39;cluster/distribute&#39; translator and filter it out in &#39;readdir()&#39; call. If the permission of that link file is different, then it treats it as a regular file, and hence readdir() sends duplicate entries for the same file.</div>




<div><br></div><div>Regards,</div><div>Amar</div><div> </div><div><br></div></div>
<br></div></div>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
<br></blockquote></div><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>