umass driver doesn't rescan the bus

Michał Frynas mfrynas at gmail.com
Thu Mar 1 22:31:27 UTC 2007


Hello all,

I've got a small problem when trying to configure the devd daemon to work
with umass driver. Here's what I'm trying to achive: I configured the devd
to handle the nomatch event as follows:

nomatch 100 {
      match "vendor" "[ven_id]";
      match "product" "[prod_id]";
      match "release" "[rel_id]";
      action "if ! kldstat -n umass; then kldload umass; fi";
};

detach 100 {
      device-name "umass[0-9]+";
      action "if kldstat -n umass; then kldunload; fi";
};

Then, when I'm attaching the usb umass device, in this case the 80gb
external hdd, devd recognize the device and runs the proper action. However,
after loading the umass driver the bus isn't rescaned automatically. I need
to plug the device out, and plug it in again for the umass driver to
recognize it correctly. I'm wondering how can I enforce that the attach
event is generated again after the umass driver is loaded, or how enforce
rescanning the usb/scsi bus (I tried the camcontrol, but no effect).
Oh, and one more thing. The kernel sees the device as the "lost device",
even it's recognized correctly, but the umass doesn't connect it the the
bus, so the userland is not able to use it in anyway.

PS. cam driver is also load.

Thanks in advance,
dziobass.


More information about the freebsd-acpi mailing list