bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rm patch suggestion


From: Marcus Brinkmann
Subject: Re: rm patch suggestion
Date: Wed, 8 May 2002 15:42:45 +0200
User-agent: Mutt/1.3.28i

On Wed, May 08, 2002 at 08:29:21AM +0200, Niels Möller wrote:
> That explains why the code tries to lookup ".", but not why it
> installs the result of that lookup, fd/"." into the CWDIR-port, rather
> than using the given fd.

Oh, I see your point...  mmh.  That code was writte by Roland, maybe he
knows if there is a reason. :)  Your argument makes sense to me.

> But now I'm confused, if I understood you correctly, you are saying
> that if I open a translated dir with O_NOTRANS,

I did not really talk about O_NOTRANS, in fact, I would not say anything
definite about this race without reading the code path or try it with a
debugger first...

> then "." in the
> directory refers to the same node, so that opening "." (without
> O_NOTRANS) will start the translator and return a different port. It's
> a little confusing if looking up "." in a directory is not a NOP. How
> does this fit with the behavior of looking up "", was that truly a
> NOP, and what's the difference between "." and ""?

I am not sure what again looking up "" means for a Hurd server, and I don't
have time to investigate on this right now.  Maybe a bit later, if nobody
beats me to the punch.

At one time I would like to have the pathname resolution protocol documented ;)

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]