On the backend to create the link file gluster does mknod (2) try below operation on zfs-fuse.
ret = mkdir (path, S_IFREG | S_ISVTX, 0); see whats the behavior. Regards, Amar On Tue, May 31, 2011 at 3:20 PM, 劉效飛 <[email protected]> wrote: > > I tried the chmod command and fchmod(fd, S_ISVTX) system call. > In both way I can successfully set the sticky bit in zfs-fuse. > > What may be the reason glusterFS failed to set the sticky bit? > > Thank you. > > > Ken > > > 2011/5/31 Amar Tumballi <[email protected]> > >> No problem.. thanks for trying out different backend... please get that >> 'chmod 01000 file' issue fixed in zfs-fuse.. it may work as backend for >> glusterfs. >> >> -Amar >> >> >> On Tue, May 31, 2011 at 11:27 AM, 劉效飛 <[email protected]> wrote: >> >>> Thank you for the detailed answer! >>> >>> 2011/5/31 Amar Tumballi <[email protected]> >>> >>>> Hi Ken, >>>> >>>> Find the answers inline. >>>> >>>> >>>> >>>>> I installed glusterfs (version 3.1.3) with zfs-fuse (0.6.9) as the >>>>> underlying filesystem. >>>>> >>>>> After renaming a file, I found the file is duplicated. >>>>> >>>>> As per the details given below, that is possible. >>>> >>>>> >>>>> Is any way to fix this problem? >>>>> >>>> >>>> Use a posix complaint filesystem as the backend. >>>> >>>> >>>>> >>>>> BTW, I found the ACL list of test1.cc in /tank/exp2 looks different: >>>>> ---------- 1 root root 0 2011-05-31 11:38 test1.cc >>>>> If I use ext4 as the underlying filesystem, the ACL list will look >>>>> like: >>>>> ---------T 1 root root 0 2011-05-31 11:38 test1.cc >>>>> >>>>> I'm wondering what does the character 'T' in the ACL list mean. >>>>> Is it related to the problem? >>>>> >>>>> >>>> Yes. That is the reason of the problem. The character 'T' 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 >>>> 'cluster/distribute' >>>> translator and filter it out in 'readdir()' 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. >>>> >>>> Regards, >>>> Amar >>>> >>>> >>>> >>>> _______________________________________________ >>>> Gluster-users mailing list >>>> [email protected] >>>> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users >>>> >>>> >>> >> >
_______________________________________________ Gluster-users mailing list [email protected] http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
