Subject: Re: accessing IDE hard drive via pcmcia card
To: Charles M. Hannum <email@example.com>
From: Steven M. Bellovin <firstname.lastname@example.org>
Date: 05/20/2004 07:06:31
In message <email@example.com>, "Charles M. Hannum" wri
>On Thursday 20 May 2004 00:58, Steven M. Bellovin wrote:
>> In message <20040519192738.GB1820@antioche.eu.org>, Manuel Bouyer writes:
>> >How long do you wait ?
>> >Per the specs, a reset can take up to 31s.
>> That was the answer. I fiddled with my code a bit to allow for a
>> longer wait; the drive is now recognized. I'm going to play with
>> things a bit more and then send in a PR with the fix.
>This "fix" is simply not going to be acceptable as a general-purpose thing.
>Not only will it cause us to potentially wait 31 seconds when no drive is
>present again, but it will also reintroduce the problem of busy-waiting a
>long time when a card is inserted. It has to be done better.
I agree. That's why I'm not going to commit my fix; I'll simply
include it in the PR for people who have the problem.
--Steve Bellovin, http://www.research.att.com/~smb