Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2001 09:19:49 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Peter Wemm <peter@wemm.org>, Brian Somers <brian@Awfulhak.org>, <freebsd-arch@FreeBSD.ORG>
Subject:   Re: Cloned open support 
Message-ID:  <20011008091835.X530-100000@salmon.nlsystems.com>
In-Reply-To: <95926.1002519791@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 8 Oct 2001, Poul-Henning Kamp wrote:

> >Doug mentions the hack in dev/streams/streams.c:
> >        td->td_dupfd = fd;
> >        return ENXIO;
> >.. this is nasty. :-)
>
> This is abuse, it should be rewritten.
>
> >I think the SVR4 clone driver uses something like this.  It causes the
> >original namei / open attempt to fail (thus releasing the "common" vnode)
> >and then switching over to the *real* file/vnode at the last minute.
>
> We would have to do that as well in order to unwind the committed vnode
> and select another.

It might be abuse but its the only way that I know of to keep track of
data per-open-file.

-- 
Doug Rabson				Mail:  dfr@nlsystems.com
					Phone: +44 20 8348 6160



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011008091835.X530-100000>