From owner-freebsd-current@FreeBSD.ORG Tue Jan 25 16:56:14 2005 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 661E716A4CE; Tue, 25 Jan 2005 16:56:14 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E06543D45; Tue, 25 Jan 2005 16:56:13 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j0PGtpOo087943; Tue, 25 Jan 2005 17:55:51 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Warner Losh From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 25 Jan 2005 09:47:19 MST." <20050125.094719.74698214.imp@harmony.village.org> Date: Tue, 25 Jan 2005 17:55:51 +0100 Message-ID: <87942.1106672151@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: pete@altadena.net cc: rwatson@freebsd.org cc: current@freebsd.org cc: imp@bsdimp.com Subject: Re: Devd event from GEOM? 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: Tue, 25 Jan 2005 16:56:14 -0000 In message <20050125.094719.74698214.imp@harmony.village.org>, Warner Losh writes: >There also needs to be some smarts to the automount daemon. You'd see >that da1s1 arrive, but if there was a DOS file system on it, you'd >mount that. If there was a FreeBSD label in it, then you'd want to >mount all of da1s1[abdefgh] that exist and have a slice type of ffs. >And what if it has a linux file system? The generate case is >relatively easy, but these sorts of things get much harder. > >> I think we should have DEVFS inject "ad0 appeared, type=DISK" to devd >> and leave it at that. > >Where do we get the type information? And do we do slices? We already have the type field in cdevsw, that's what FIODTYPE returns. There is no moral difference between whole disks and slices here. Typically you would not react to the whole disk, but only to the slice you actually wanted. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.