public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Problems with sr_get_events
@ 2012-04-08 13:24 Alan Stern
  2012-04-16 22:55 ` Tejun Heo
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Stern @ 2012-04-08 13:24 UTC (permalink / raw)
  To: Tejun Heo; +Cc: SCSI development list

Tejun:

There are several closely related issues involving sr_get_events().

The first may just be confusion on my part.  You've got a 
cd->ignore_get_event flag, whose name seems to mean that the result 
from sr_get_events() should be ignored.  But the result isn't ignored 
entirely; only the DISK_EVENT_MEDIA_CHANGE bit is cleared.

Furthermore, if you really do intend to ignore the result from 
sr_get_events() then why call it in the first place?  Or does the flag 
actually mean that you want to ignore the media-change bit from 
get_events while still using the other bits?

Finally, the GET_EVENT_STATUS_NOTIFICATION command is not present in 
all versions of SCSI, and not all drives support it.  sr_get_events() 
should check for an ILLEGAL_REQUEST sense key and stop sending the 
command if it is found.  Maybe a new flag will be needed for this.

Alan Stern


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-17 15:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-08 13:24 Problems with sr_get_events Alan Stern
2012-04-16 22:55 ` Tejun Heo
2012-04-17 15:33   ` Alan Stern
2012-04-17 15:38     ` Tejun Heo
2012-04-17 15:46       ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox