GEOM weirdness with SD flash reader?

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Jul 2 04:21:28 UTC 2007


In message <4688786F.5080408 at root.org>, Nate Lawson writes:
>M. Warner Losh wrote:

>Nope, dmarck is right.  The reader was inserted "empty", then the media
>was added.  It took a write to the device (maybe via the mount attempt
>of /dev/da2) to trigger a re-taste.

Actually you only need to open it for write, I usually use:

	true > /dev/da2

The problem here is, quite simply, that nobody tells GEOM that a card
has been inserted.

opening for a write and then closing it forces a retaste because metadata
blocks could have been written.

The correct fix for this is to have scsi_da tell geom that the card
was inserted.

-- 
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