Re: [PATCH] Missing usb_find_device symbol from usb.c

From: Pekka Enberg
Date: Thu Jan 24 2008 - 08:14:21 EST


Hi,

On Jan 24, 2008 2:58 PM, Oliver Neukum <oliver@xxxxxxxxxx> wrote:
> So we put it into drivers/usb/misc
> Does that change the code?

Yes. It's assumes only one device is plugged in.

On Jan 24, 2008 2:58 PM, Oliver Neukum <oliver@xxxxxxxxxx> wrote:
> How do you make a block device on top of this device? It has no notion
> of reading/writing arbitrary blocks. It operates on files.

So you don't make it a block device which is even simpler. Now
get_sb_bdev() will fail before attempting to read the superblock. In
iriverfs, we only need to check for USB_DEVICE_MAJOR and then look up
struct usb_device to make sure we're allowed to mount.

Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/