Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rice!sun-spots-request From: rcc!pearlman@rand.org (Laura Pearlman) Newsgroups: comp.sys.sun Subject: Re: getwd() call problems Keywords: Source Message-ID: <4047@brazos.Rice.edu> Date: 21 Dec 89 03:38:13 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 15 Approved: Sun-Spots@rice.edu X-Refs: Original: v8n221 X-Sun-Spots-Digest: Volume 8, Issue 231, message 7 of 16 Sun's getwd function can potentially stat all the mount points, all the current directory's siblings, and the siblings of all the current directory's ancestors in the process of determining the current working directory. I've written a few system calls to determine a file's filesystem id (since the fsid is a local concept, it's not necessary to contact a file's server to determine its fsid) and rewritten getwd to run stats only on directories that are on the same filesystem as the current directory. We've only been running my version of getwd for a short time, but so far it seems to have solved all our getwd-hanging problems. I could provide sources to my system calls and context diffs to getwd.c if anyone's interested. -- Laura Pearlman pearlman@rand.org