Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2005 20:47:31 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        soc-victor@freebsd.org
Cc:        Marc Olzheim <marcolz@stack.nl>, freebsd-hackers@freebsd.org, ticso@cicely.de
Subject:   Re: O_NONBLOCK for devices with removable media
Message-ID:  <20050801184731.GD26656@cicely12.cicely.de>
In-Reply-To: <4940255050801114161c1cea3@mail.gmail.com>
References:  <494025505080104427c3f91f6@mail.gmail.com> <20050801130502.GA39470@stack.nl> <494025505080106336a329bb@mail.gmail.com> <20050801173047.GC26656@cicely12.cicely.de> <4940255050801114161c1cea3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 01, 2005 at 09:41:30PM +0300, victor cruceru wrote:
> Well, if you are doing this from a daemon (multiplexing a lot of events) 
> which is blocked in this open syscall, even 1 second is not reasonable. In 
> my case it is something more than 30 of seconds (again, on a 5.4 box). I'll 
> give it a try on FreeBSD 6. I'm currently investigating if there is 
> something like TEST_UNIT_READY (for both ATAPI and SCSI) which can be issued 
> on a control device (i.e. /dev/ata)

What do you expect it to do?
Ask the device about the state or always fail, because it is not
allowed to ask the device?
In your case you have a broken device, this isn't much of an argument.
A resonable reply time for a USB device would be less then 10ms.

-- 
B.Walter                   BWCT                http://www.bwct.de
bernd@bwct.de                                  info@bwct.de




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050801184731.GD26656>