Here's a patch that I've applied to my trees for the ub driver that
hooks up the block device to the usb device in sysfs.  This allows tools
like udev to work better (in fact, all my previous rules for usb storage
devices worked just fine, no changes necessary, which was pretty nice.)

thanks,

greg k-h

--------

USB: hook the ub driver up to the sysfs tree so that tools like udev work better.

Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>

diff -Nru a/drivers/block/ub.c b/drivers/block/ub.c
--- a/drivers/block/ub.c        2004-08-12 15:02:55 -07:00
+++ b/drivers/block/ub.c        2004-08-12 15:02:55 -07:00
@@ -1842,6 +1842,7 @@
        disk->first_minor = sc->id * UB_MINORS_PER_MAJOR;
        disk->fops = &ub_bd_fops;
        disk->private_data = sc;
+       disk->driverfs_dev = &intf->dev;
 
        rc = -ENOMEM;
        if ((q = blk_init_queue(ub_bd_rq_fn, &sc->lock)) == NULL)


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to