From owner-freebsd-current@FreeBSD.ORG Sun Jul 1 20:37:22 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE6F816A46E for ; Sun, 1 Jul 2007 20:37:22 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 4B74113C46A for ; Sun, 1 Jul 2007 20:37:21 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.1/8.14.1) with ESMTP id l61KbLtH083411; Mon, 2 Jul 2007 00:37:21 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 2 Jul 2007 00:37:21 +0400 (MSD) From: Dmitry Morozovsky To: Nate Lawson In-Reply-To: <46880F1C.3020602@root.org> Message-ID: <20070702003506.K81781@woozle.rinet.ru> References: <46880400.70808@root.org> <20070702000903.L81781@woozle.rinet.ru> <46880F1C.3020602@root.org> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (woozle.rinet.ru [0.0.0.0]); Mon, 02 Jul 2007 00:37:21 +0400 (MSD) Cc: current Subject: Re: GEOM weirdness with SD flash reader? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jul 2007 20:37:22 -0000 On Sun, 1 Jul 2007, Nate Lawson wrote: NL> > Do you insert your card after reader got initialized? I have internal reader in NL> > my work machine, and have to use NL> > NL> > dd if=/dev/null of=/dev/daN count=0 NL> > NL> > to [re]initialize GEOM providers on newly inserted card... NL> NL> Yes, you're exactly right. However, shouldn't a read from a device NL> trigger a re-taste if the media is removable? So the fdisk of da2 NL> should have caused it to re-read the MBR and create /dev/da2s1. I think NL> maybe there should be a flag set for devices with removable media that NL> causes the device to be re-tasted on every mount request. NL> NL> Other ideas how to fix this? IIRC, former discussion leads to the fact that GEOM prividers list is updated only after (even empty) write request, not read ones... AFAIC wind0ze systems are constantly polling removable devices to detect media changes. Don't know about current Linuces. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------