Re: [PATCH RESEND] SCSI not showing tray status correctly

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Maarten Bressers <mbres@...>
Cc: <linux-kernel@...>, <linux-scsi@...>, <axboe@...>, <tasio@...>, <dsd@...>
Date: Tuesday, October 30, 2007 - 11:32 pm

On Sat, 2007-10-27 at 22:58 +0000, Maarten Bressers wrote:

In general it looks good ... I suppose the only way to test it is to
stick it in and see what happens.  However, there are a few rough edges.


This bit isn't quite right ... this will return true if there's a
collected sense code and false otherwise (so it returns 0 on failure
that doesn't produce any sense information).


Unit attention won't necessarily mean the media is OK ... unit attention
can mean the media or tray status has changed.


Actually, all asc 0x4 codes are some type of in progress operation,
format doesn't necessarily have to be treated specially.


This is also a bit odd.  asc 0x3a ascq 0x2 definitely means tray open,
but there are a lot of other not ready conditions that don't mean this.


James


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH RESEND] SCSI not showing tray status correctly, Maarten Bressers, (Sat Oct 27, 6:58 pm)
Re: [PATCH RESEND] SCSI not showing tray status correctly, James Bottomley, (Tue Oct 30, 11:32 pm)
[PATCH] sr: update to follow tray status correctly, James Bottomley, (Sat Jan 5, 12:39 pm)
Re: [PATCH] sr: update to follow tray status correctly, Daniel Drake, (Wed Feb 6, 1:09 pm)
Re: [PATCH] sr: update to follow tray status correctly, James Bottomley, (Wed Feb 6, 3:01 pm)
Re: [PATCH] sr: update to follow tray status correctly, Daniel Drake, (Wed Feb 6, 4:54 pm)