Date: Wed, 22 Jul 2009 15:14:52 +0800 From: "Sagara Wijetunga" <sagara@tomahawk.com.sg> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-stable@freebsd.org Subject: Re: SCSI device not created upon a CF card plug in Message-ID: <20090722071452.16078.qmail@us1.tomahawkonline.net> In-Reply-To: <h46oih$eh5$1@ger.gmane.org> References: <20090722022027.12059.qmail@us1.tomahawkonline.net> <200907220759.22608.freebsd-stable@dino.sk> <h46fma$k5q$1@ger.gmane.org> <200907221132.35462.freebsd-stable@dino.sk> <h46oih$eh5$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Ivan Voras writes: > 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. > I have earlier posted my tests with Linux. All tests were done with same CF cards and the very same multi-card reader on the same computer. They work on Linux. That is, nothing wrong with the multi-card reader, it does it's job of signaling well. Regards Sagara
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090722071452.16078.qmail>