Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 1997 10:56:17 -0700
From:      Jason Thorpe <thorpej@nas.nasa.gov>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        dk+@ua.net, freebsd-hackers@freebsd.org
Subject:   Re: Possible SERIOUS bug in open()? 
Message-ID:  <199710231756.KAA04569@lestat.nas.nasa.gov>

next in thread | raw e-mail | index | archive | help
On Thu, 23 Oct 1997 17:31:02 +0000 (GMT) 
 Terry Lambert <tlambert@primenet.com> wrote:

 > I need to hold a reference.  The "lock against eject" operation is
 > a side effect of an existing reference forcing the count over 1 for
 > the device in question.
 > 
 > So the short answer is "to obtain reference side effects without
 > granting read/write access on the descriptor".

I think "open for not read not write" is a silly way to do this, personally.

If you want to add/delete "artificial references", then invent a real
interface for it, don't use a hack like open with non-sensical flags.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-6                                       Work: +1 415 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939



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