From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9acf0838ced8becdebed4425da4af41f@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] lnfs From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 2 Oct 2002 01:08:03 -0400 Topicbox-Message-UUID: fad77c38-eaca-11e9-9e20-41e7f4b1d025 > > However, in rreaddir, I don't reread the file while > > translating the short names to long ones. Someone > > could create a file while I'm busy converting the > > dir. There's plenty of window there for someone to > > sneak through. > > I think this is the problem. I had a process running on the > cpu server which walked the tree finding things to do, and > another process on my terminal which added things to the > tree. Perhaps I won't use lnfs after all... Just put a readnames() call right after the dirreadall() call. The race goes away, no? Russ