GEOM weirdness with SD flash reader?

Nate Lawson nate at root.org
Mon Jul 2 05:05:28 UTC 2007


Poul-Henning Kamp wrote:
> In message <4688830C.6050701 at root.org>, Nate Lawson writes:
> 
>> camcontrol tur (test unit ready) will return an error or success if the
>> medium is now present.  Kicking off a process to do that when a
>> removable media da(4) device appears seems like a good idea.  It could
>> also be a thread in devd.
> 
> I would call that "The Linux Solution" :-)
> 
> The right place to poll is from scsi_da.

I disagree.  Once scsi_da found the media, it would then somehow need to
notify devd (i.e. to automount).  If both functions are in devd, the
loop becomes:

while (1) {
    camcontrol tur mydev;
    if (found)
        notify_automount;
        break;
    sleep 3;
}

-- 
Nate


More information about the freebsd-current mailing list