tech-kern archive

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

Re: Adding linux_link(2) system call



On Fri, Jul 29, 2011 at 06:41:43PM +0000, Emmanuel Dreyfus wrote:
 > On Fri, Jul 29, 2011 at 11:37:48AM -0400, Greg Troxel wrote:
 > > >  a) Create a file A
 > > >  b) Create a symlink X->A
 > > >  c) Create a hard link Y=X
 > > >  d) Unlink a
 > > >  e) Create a directory A
 > 
 > Here is what happens. The semantics are really different.
 > [snip]

Please examine the behavior of link(2), not ln(1), as the latter may
do additional things to confuse the situation.

 > > Is there some way in Linux to change the symlink target and have both
 > > (hardlinked) source names point to the new target?

AFAIK no.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index