[Gluster-devel] Fixing dht rename of directory symlink

Anand Avati anand.avati at gmail.com
Fri Aug 5 10:33:43 UTC 2011


On Tue, Aug 2, 2011 at 2:38 PM, Emmanuel Dreyfus <manu at netbsd.org> wrote:

> On Sun, Jul 31, 2011 at 05:56:42PM +0530, Anand Avati wrote:
> > Your summary is accurate. Currently distribute assumes link(2)ability of
> > non-directories to provide POSIX semantics that the destination path
> should
> > always be accessible if a file already existed at the time of rename(2).
>
> It seems this has been adressed by standards:
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html
>
> The bottom line is just to use lnkat(2) instead of link(2). I will
> implement linkat support in NetBSD


That sounds good! I'm wondering if we should update storage/posix to use
POSIX.2008 updates for its syscalls.

Avati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20110805/df9446d3/attachment-0003.html>


More information about the Gluster-devel mailing list