From owner-freebsd-current Fri May 29 22:42:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA24424 for freebsd-current-outgoing; Fri, 29 May 1998 22:42:51 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles135.castles.com [208.214.165.135]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA24410 for ; Fri, 29 May 1998 22:42:42 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id VAA00666; Fri, 29 May 1998 21:38:19 -0700 (PDT) Message-Id: <199805300438.VAA00666@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Jordan K. Hubbard" cc: Mike Smith , Eivind Eklund , current@FreeBSD.ORG Subject: Re: I see one major problem with DEVFS... In-reply-to: Your message of "Fri, 29 May 1998 22:25:44 PDT." <21984.896505944@time.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 29 May 1998 21:38:19 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > You could make a strong case for having mknod ignore the (dev) argument > > and just look the name up in the reference devfs copy, and then > > duplicate it at the path given (presuming that's inside a devfs). > > Well, the way I figured it, devfs is going to have a mechanism for > creating aliases anyway (for ln and friends), so an attempt to mknod > something would result in devfs doing a reverse-lookup on the > major/minor pair and creating an alias for the entry found. If none > is found at all, you treat the mknod as a bogus operation and punt it. Uh, doing a reverse lookup on the major/minor pair would be pretty unuseful. If you've just deleted the device, you have no idea what it's (dev) is, so you can't possibly supply them as arguments. If/When dev_t finally disappears, this won't even be feasible. The only useful way to do it is to recover something by its original name. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message