On 24.07.2012 10:49, Andriy Gapon wrote:
on 23/07/2012 16:42 Alexander Motin said the following:
Patch can be found here:
http://people.freebsd.org/~mav/mediachange8.patch
Any comments/objections/propositions?
Alexander,
would it make sense for scsi_cd to also use GET EVENT STATUS NOTIFICATION
command (4A) with Polled flag and Media bit set in Notification Class in
addition to TUR for devices that do not support asynchronous notification?
I think that this should increase reliability of detecting CD media changes
between polls.
Thanks for the hint. I've read about that command, but haven't found it
useful. If media was quickly removed and reinserted and we missed it,
then device will send us UNIT ATTENTION on first following request,
which we will handle. If media was quickly inserted and removed and we
missed it, then we just have nothing to do about it.
It could be interesting to use GET EVENT STATUS NOTIFICATION in
asynchronous mode to avoid polling, but it works only for queued
commands, which are not supported by ATAPI devices.
--
Alexander Motin
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "[email protected]"