gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Re: tla build-config --hard-links available too (fwd)


From: Davide Libenzi
Subject: [Gnu-arch-users] Re: tla build-config --hard-links available too (fwd)
Date: Thu, 2 Oct 2003 11:56:32 -0700 (PDT)

On Thu, 2 Oct 2003, Pau Aliagas wrote:

> On 2 Oct 2003, Miles Bader wrote:
>
> > Davide Libenzi <address@hidden> writes:
> > > > The same warnings than for get apply:
> > > > BE CAREFUL with hardlinks!!
> > >
> > > I am currently playing with something like this and it seem to work.  I
> > > did a shared library (libflcow.so) that gets loaded with LD_PRELOAD and
> > > read a FLCOW_PATH environment variable.  Every file open RDWR inside the
> > > paths listed inside the FLCOW_PATH gets decoupled from the link and gets
> > > its own local copy.  The libary hooks the open(2) function.
> >
> > It would be also useful to make a list of common developer software that
> > _doesn't_ break hardlinks.
> >
> > Emacs and patch (my main tools!) are OK (they break hardlinks), but is it
> > true that vim doesn't?
>
> Vim seems NOT to be safe in the default setup.
>
> You should add ths line to the ~/.vimrc file:
> set backupcopy=no     " rename the file and write a new one (preserve links)

My emacs does not break HL but this is due to the fact that I do not use
backup files. Anyway this is what I'm currently using :

http://www.xmailserver.org/fl-cow-0.1.tar.gz

Someone knows if cygwin uses CreateHardLink() for its hard links ?



- Davide





reply via email to

[Prev in Thread] Current Thread [Next in Thread]