diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-02-27 01:12:12 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-02-27 01:12:12 +0000 |
commit | 2b2c7caa91ca79f0b10cb6d633355d94cf49698f (patch) | |
tree | 8d8aa2c28c994e4bb7023ecbc44daff5eef672d7 /usr.sbin/dhcrelay/dispatch.c | |
parent | b7aef825f62a7a94ddfc3f5ec9d0861f8429a4b4 (diff) |
If test_unit_ready() in sdattach() returns EIO, try to spin up unit
exactly as is done in sdopen(). This improves the chances of getting
valid geometry/size and avoiding 'drive offline' errors, without
subjecting the device to anything it won't see anyway.
No impact on devices that already work. Fixes problem with Jim Rees'
Hitachi DK23DA in an Archos Multimedia Jukebox. Without adding quirks!
Tested by Jim Rees. ok marco@.
Diffstat (limited to 'usr.sbin/dhcrelay/dispatch.c')
0 files changed, 0 insertions, 0 deletions