Re: Devd event from GEOM?

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Tue, 25 Jan 2005 17:55:51 +0100
In message <20050125.094719.74698214.imp_at_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_at_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.
Received on Tue Jan 25 2005 - 15:56:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC