From owner-freebsd-stable@FreeBSD.ORG Wed Jul 22 10:10:48 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 364C01065673 for ; Wed, 22 Jul 2009 10:10:48 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id E4B568FC12 for ; Wed, 22 Jul 2009 10:10:47 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MTYmT-0000XR-Ji for freebsd-stable@freebsd.org; Wed, 22 Jul 2009 10:10:37 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jul 2009 10:10:37 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jul 2009 10:10:37 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Wed, 22 Jul 2009 12:10:26 +0200 Lines: 37 Message-ID: References: <20090722022027.12059.qmail@us1.tomahawkonline.net> <200907220759.22608.freebsd-stable@dino.sk> <200907221132.35462.freebsd-stable@dino.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.21 (X11/20090615) In-Reply-To: <200907221132.35462.freebsd-stable@dino.sk> Sender: news Subject: Re: SCSI device not created upon a CF card plug in X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2009 10:10:48 -0000 Milan Obuch wrote: > On Wednesday 22 July 2009 09:38:50 Ivan Voras wrote: > > [ snip ] > >>>> After the CF card is plugged in: >>>> $ ls -l /dev/ | grep da >>>> crw-r----- 1 root operator 0, 105 Jul 22 13:18 da0 >>>> crw-r----- 1 root operator 0, 106 Jul 22 13:18 da1 >>>> crw-r----- 1 root operator 0, 107 Jul 22 13:18 da2 >>>> crw-r----- 1 root operator 0, 108 Jul 22 13:18 da3 >>>> >>>> After reboot while the CF card is plugged in: >>>> $ ls -l /dev/ | grep da >>>> crw-r----- 1 root operator 0, 105 Jul 22 13:24 da0 >>>> crw-r----- 1 root operator 0, 106 Jul 22 13:24 da1 >>>> crw-r----- 1 root operator 0, 110 Jul 22 13:24 da1s1 >>>> crw-r----- 1 root operator 0, 107 Jul 22 13:24 da2 >>>> crw-r----- 1 root operator 0, 108 Jul 22 13:24 da3 >>>> >>>> My questions in this regards are: >>>> 1. Is this an error/bug in FreeBSD 7.2? >>> This is known limitation of, I think, GEOM stack. >> No, it is certainly not. What would be the point? >> > > Please re-iterate :) > > When GEOM is signalled about new device, it tries to understand data > structures - MBR, partition table, etc. The key is 'when signalled'. So this > is not limitation of GEOM per se, just missing signalling of new device/data > media arrival. Ah yes, if the reader always signals the device present but doesn't signal media insertion, it would lead to the described problem. I agree there isn't a good solution apart from polling.