Devd event from GEOM?

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jan 25 08:56:14 PST 2005


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.


More information about the freebsd-current mailing list