devfs and hot unplugging firewire device
John-Mark Gurney
gurney_j at resnet.uoregon.edu
Wed Sep 20 12:42:49 PDT 2006
M. L. Dodson wrote this message on Wed, Sep 20, 2006 at 14:14 -0500:
> More experimental results on firewire disks and hot unplugging:
>
> Transcripts of two sessions can be retrieved from
> http://siegfried.utmb.edu/bdodson/firewire.on.histidine.txt and
> http://siegfried.utmb.edu/bdodson/firewire.on.serine.txt
doh, I think I know what your problem is... you need to do three
or so fwcontrol -r's before the device will disappear... This is
necessary, since each plug causes a rescan, and you don't want devices
disappearing when you add your cd drive... It looks like adding a
timeout would be a good thing to the device orphan... If the device
has been orphaned for more than a minute, drop it, or three or so
resets...
Instead of fwcontrol -r, you can plug/unplug another device, and a
couple times will cause the device to fall off the bus..
Are you putting a different drive into the same enclosure? If you
are, then the disk 'reappears', and apparently geom tastes w/ some
of the old info.. if you do: true > /dev/da4 it will force a retaste
and the bogus entries should go away...
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
More information about the freebsd-firewire
mailing list