Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 18 Aug 2002 19:11:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 18 Aug 2002 19:11:49 -0400 Received: from mail17.speakeasy.net ([216.254.0.217]:52949 "EHLO mail.speakeasy.net") by vger.kernel.org with ESMTP id ; Sun, 18 Aug 2002 19:11:48 -0400 Subject: Re: devfs From: Ed Sweetman To: Alexander Viro Cc: "Barry K. Nathan" , linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 18 Aug 2002 19:15:49 -0400 Message-Id: <1029712550.3331.43.camel@psuedomode> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2857 Lines: 59 On Sun, 2002-08-18 at 19:03, Alexander Viro wrote: > > > On 18 Aug 2002, Ed Sweetman wrote: > > > This has nothing to do with not mounting devfs and still using devfs to > > work with devices. If devfs is not mounted but you're still using > > devfs, you shouldn't need anything in /dev. The documentation says you > > can use devfs without mounting and This is what i'm saying is > > problematic and doesn't seem possible in normal usage. It's an > > optional config so are we using devfs when we dont mount it or not? > > and if not, then why make not mounting it an option ? > > What? If program calls open("/dev/zero",...) and there's no such file, > how the fuck would having devfs enabled help you? > > Come on, use common sense - devfs provides a tree with some device nodes. > You can mount it wherever you want (or not mount it anywhere). Just as > with any other filesystem. > > If you mount it on /dev - well, duh, you see that tree on /dev. If you > do not - you see whatever is in /dev on underlying fs. > > If program wants to access a device, it opens that device. Just as any > other file. By name. There is nothing magical about names that begin > with /dev/ - it's just a conventional place for device nodes. > > devfs "mount" option is an idiotic kludge that makes _kernel_ mount > it on /dev after the root fs had been mounted. Why it had been > introduced is a great mistery, since the normal way is to have a > corresponding line in /etc/fstab and have userland mount whatever > it needs. > > Said option is, indeed, not required for anything - in a sense that > it does nothing that system wouldn't be perfectly capable of in regular > ways. > > But you _do_ need stuff in /dev, no matter what filesystem it comes > from. Kernel doesn't need it, but userland programs expect to find > it there. If you had deleted device nodes from underlying /dev and > do not care to mount something on top of it - well, there won't be > anything in that directory. > Ok, that all makes sense. I removed the dev entries because they weren't needed by me anymore but I suppose it doesn't hurt anything to just keep them there anyways so I've fixed all that. Either way, removing devfs did nothing but apparently it was asked to be done to allow better testing and/or debugging to be done. But i've yet to get any reason why I removed devfs to investigate promise ide controller's dma related memory failures. I've removed devfs and replaced the old /dev entries, no problem. I'm not getting off topic about that. It's all done so i'm waiting for the next step here. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/