All of lore.kernel.org
 help / color / mirror / Atom feed
* rm hangs on symlinks to down mount points
@ 2003-12-30 21:47 Paul Raines
  2003-12-30 23:09 ` H. Peter Anvin
  0 siblings, 1 reply; 16+ messages in thread
From: Paul Raines @ 2003-12-30 21:47 UTC (permalink / raw)
  To: autofs


I have RedHat7.3 and RedHat9 systems with autofs-3.1.7 and
2.4.20 kernels on all.

Lets say for instance that /autofs/foobar is an automounted mount point
on server foobar and foobar is down.  On your client box you have
a symlink on your local disk as such:

  linkfile -> /autofs/foobar/somefile

If you try to delete linkfile, it hangs forever.  Seems to never timeout
or work.   Doing a strace shows it hanging to a system stat() call
on the pointed to file.

First, it seems fundamentally wrong that doing an unlink() on a symlink
causes a stat() call on the pointed to file.  Seems a huge waste.

One interesting thing, on RH7.3 if the above linkfile is an a directory
and you do a 'rm -rf' on that directory, it works.  On RH9, it still
hangs.

BTW, is there anyway outside a kernel recompile to configure how
long it takes for an access to a mount point on a down server to
timeout?


-- 
---------------------------------------------------------------
Paul Raines                   email: raines@nmr.mgh.harvard.edu
MGH/MIT/HMS Athinoula A. Martinos Center for Biomedical Imaging
149 (2301) 13th Street        Charlestown, MA 02129	USA   

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-01-06 16:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-30 21:47 rm hangs on symlinks to down mount points Paul Raines
2003-12-30 23:09 ` H. Peter Anvin
2003-12-30 23:19   ` Paul Raines
2003-12-30 23:23     ` H. Peter Anvin
2003-12-30 23:37       ` Paul Raines
2003-12-30 23:57         ` H. Peter Anvin
2003-12-31  1:37           ` Jim Carter
2003-12-31  3:17           ` Paul Raines
2003-12-30 18:38             ` Ian Kent
2003-12-31 14:25               ` Paul Raines
2003-12-31 14:54                 ` Ian Kent
2003-12-31 15:27                   ` Paul Raines
2003-12-30 19:59                     ` Ian Kent
2003-12-31 10:58             ` Christian Vogel
2003-12-31 14:32               ` Paul Raines
2004-01-06 16:23           ` Paul Raines

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.