Floppy experiment requested
Charles Lindsey <chl <at> clerew.man.ac.uk>
2008-03-14 22:49:00 GMT
I suspect I have found a bug in the floppy disc driver (fd.c, which can be
viewed on www.opensolaris.org). However, it is possible that there is a
hardware problem on my machine, so I am requesting people on this list to
see if they can reproduce it.
I am using Solaris 10-u1 on an Ultra-2, but I would expect the same
problem might exist on other platforms and on earlier OSes, since I doubt
the fd driver has changed signficiantly in years.
Here is how to reproduce it.
1. Ensure that power management is on ("autopm enable" in /etc/power.conf)
with a sensible timout, e.g. "system-threshold 900s" (or "15m").
2. Ensure that /vol/dev/*diskette* are emtpy. If not, 'eject fd' and wait
15 minutes for pm to timeout. Volmgt should be running, of course.
3. Ensure that there is NO floppy in the drive, and that there has been no
floppy activity for 15 minutes.
4. If you have Solaris 10, run (as root) 'dtrace -F -m fd' so that you can
ensure that fd_pm_raise_power gets called during the next step.
5. Do 'volcheck -v /dev/diskette0'.
If it reports "/dev/diskette0 has media", then you have seen the bug,
It should, of course, have said "/dev/diskette0 has no media" and if,
after seeing the bug, you do another eject and another volcheck (whilst
the power is still up, of course), it will then get it right.
(Continue reading)