Messages in this thread | | | From | Keith Owens <> | Subject | Re: NFS mounts confuse getcwd() | Date | Mon, 14 Sep 1998 01:22:36 +1000 |
| |
On Sun, 13 Sep 1998 10:45:40 -0400, Bill Hawes <whawes@star.net> wrote: >Keith Owens wrote: >> 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(). > >I can see that this would be massively annoying, and in this case the >attempts at revalidation don't make a lot of sense, as there's not much >the client can do if something gets scrambled on the server. > >I'll ponder it a while and try to come up with a solution ...
It almost needs a flag on the directory scan. One that says "just give me the inode number, don't try to access subdirectories until I need to". That would take care of disconnected NFS, AFS, external disks and CDs that are powered off, floppies that have been removed, etc.
- 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
| |