Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Jul 2007 04:21:26 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Nate Lawson <nate@root.org>
Cc:        current@FreeBSD.org, "M. Warner Losh" <imp@bsdimp.com>
Subject:   Re: GEOM weirdness with SD flash reader? 
Message-ID:  <42855.1183350086@critter.freebsd.dk>
In-Reply-To: Your message of "Sun, 01 Jul 2007 21:00:47 MST." <4688786F.5080408@root.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <4688786F.5080408@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@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?42855.1183350086>