From owner-freebsd-current@FreeBSD.ORG Sun Nov 28 03:21:24 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE0A016A4CE for ; Sun, 28 Nov 2004 03:21:24 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 997B643D5D for ; Sun, 28 Nov 2004 03:21:24 +0000 (GMT) (envelope-from pbowen25@juno.com) Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id C283BC3C899 for ; Sat, 27 Nov 2004 22:21:22 -0500 (EST) X-Sasl-enc: Cw+UBJ7jz+ONBCHBcIt1NA 1101612081 Received: from juno.com (unknown [204.110.228.254]) by frontend3.messagingengine.com (Postfix) with ESMTP id 14B322553F for ; Sat, 27 Nov 2004 22:21:20 -0500 (EST) Message-ID: <41A943F9.40106@juno.com> Date: Sat, 27 Nov 2004 21:20:25 -0600 From: Patrick Bowen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Current References: <41A8C9C3.1020504@juno.com> <20041127192257.GA10638@il.fontys.nl> In-Reply-To: <20041127192257.GA10638@il.fontys.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Getting devfs to recognize a hotplugged fd0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2004 03:21:25 -0000 Ed Schouten wrote: >Hello Patrick, > >Patrick Bowen wrote: > > >>I'm trying to learn how to get devfs to create an fd0 enty in /dev >>automatically when I plug a floppy drive into the serial port of a >>running Dell D600 laptop running 6.0 current. >> >> > >Are you sure that's possible at all? You know the serial port isn't >plug-and-play? How can the operating system tell that there is something on >the serial port at all? :) > > > Ed; No, I'm not sure. But, in 4.10, with /dev already populated with an entry for fd0, I could plug the floppy into a running machine and then mount it, no problem. So I'm thinking that if can either create an entry for /dev/fd0 during or shortly after boot time, or get devfs to rescan for devices, then it should work on -current also. I occurs to me that rescanning might wreak havoc with operations already using other devices, like a disk write or something, so the first option may be preferable. This is not a critical issue, but falls more in the category of "Gee, I wonder if i can (fill-in-the-blank)" sort of thing. BTW, thanks for your reply... Patrick