New locking idea (was Re: [PATCH 0 of 2] new log option --tolerant)

marco gaddoni marco.gaddoni at gmail.com
Mon Dec 13 13:05:43 CST 2010


On Mon, Dec 13, 2010 at 07:01, Matt Mackall <mpm at selenic.com> wrote:

>
> I'm not thrilled with this approach, but you've got me thinking about
> alternatives to fix this long-standing issue.
>
> ... snip ...


>
> This relies on atomicity of rmdir vs file creation, which is a pretty
> reasonable requirement as failing it would mean a filesystem could
> 'leak' files.
>
>
be careful here: directory rename on some obscure linux filesystem
is allowed to return EXDEV; this error is usually handled
by mv with a cp + rm of the directory.
i vaguely remember something like this with 9p (possibly used
in virtualization) and google found http://lwn.net/Articles/312641/
suggest to check on samba & windows

...



> In addition to fixing Jason's problem, this will also let us safely do
> things like running strip on a repo that's being served by hgweb.
>
> --
> Mathematics is the supreme nostalgia of our time.
>
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>



-- 
"Reality continues to ruin my life." - Calvin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20101213/abb0e954/attachment.htm>


More information about the Mercurial-devel mailing list