https://bugzilla.novell.com/show_bug.cgi?id=374526
User teheo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=374526#c3
Tejun Heo changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |teheo@novell.com
--- Comment #3 from Tejun Heo 2008-05-14 23:43:06 MST ---
Ah, the problem is that the heuristics itself used in ToggleTray. You cannot
expect every drive to behave this way. There will be almost definitely drives
which will behave differently.
More appropriate way to do detect current tray status is to issue
TEST_UNIT_READY and look at the sense data. If tray is open, it should say
MEDIUM NOT PRESENT - TRAY OPEN. In which case, the tray should be closed. If
the device is ready or the sense data is MEDIUM NOT PRESENT - TRAY CLOSED, the
tray should be open.
If the device is not ready but the sense data is none of the above two, you
can't really tell the current tray status. In that case, falling back to the
original heuristic should work.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.