From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lucio De Re To: 9fans@cse.psu.edu Subject: Re: [9fans] SCSI initialisation Message-ID: <20030429120747.E26796@cackle.proxima.alt.za> References: <20030429111536.D26796@cackle.proxima.alt.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: ; from Nigel Roles on Tue, Apr 29, 2003 at 10:59:00AM +0100 Date: Tue, 29 Apr 2003 12:07:48 +0200 Topicbox-Message-UUID: 9a943842-eacb-11e9-9e20-41e7f4b1d025 On Tue, Apr 29, 2003 at 10:59:00AM +0100, Nigel Roles wrote: > > > r->sense[12] == 0x04 && r->sense[13] == 0x01 > > > > and I have no idea what to make of it :-( > > It means that the device is "in the process of becoming ready". > > I expect you can figure out how to handle that. I gambled on if (r->sense[12] == 0x04){ status = SDcheck; if(r->sense[13] == 0x01) status = SDok; break; } ... return (status == SDok || status == SDcheck); which seems to have worked. I guess I ought to take the more patient approach of actually waiting for r->sense[13] == 0? Or are the sense values meant to be something else altogether? ++L