Re: NFS mounts confuse getcwd()

Pavel Machek (pavel@bug.ucw.cz)
Sun, 13 Sep 1998 14:26:16 +0200


Hi!

> getcwd() runs up the directory tree, if its search algorithm crosses
> the disconnected NFS mount point it tries to access the remote system.
> Not good when a remote system drops off, even users who are not using
> ocs3 directories are hit. Lots of tasks invoke getcwd().

This is problem with libc. Getcwd(), as it is, is pretty slow and
pretty broken in my eyes. Fortunately, Linux from 2.1.~70 provides
getcwd() syscall, which does not need to do stupid things like
readdirs. libc should learn to use it.
Pavel

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html