Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2005 17:55:51 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Warner Losh <imp@rover.village.org>
Cc:        imp@bsdimp.com
Subject:   Re: Devd event from GEOM? 
Message-ID:  <87942.1106672151@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 25 Jan 2005 09:47:19 MST." <20050125.094719.74698214.imp@harmony.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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