[Gluster-users] Files are duplicated after renaming (with glusterfs+zfs-fuse)

劉效飛 f92019 at csie.ntu.edu.tw
Wed Jun 1 01:18:12 UTC 2011


The call to mknod returns 0, but the sticky bit is not set.
I have to execute chmod(path, S_ISVTX) to set the sticky bit after mknod.

Best,
Ken




2011/5/31 Amar Tumballi <amar at gluster.com>

> Oops! correction. try
>
> ret = mknod (path, S_IFREG | S_ISVTX, 0);
>
> instead of
>
> ret = mkdir (path, S_IFREG | S_ISVTX, 0);
>>
>>
> or chmod();
>
>
>> see whats the behavior.
>>
>> Regards,
>> Amar
>>
>>
>>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20110601/bb8aeb35/attachment.html>


More information about the Gluster-users mailing list