Re: Vendor info from device name

From: Greg KH
Date: Sat May 09 2009 - 01:03:28 EST


On Fri, May 08, 2009 at 05:16:01PM -0700, Robert Mykland wrote:
> Hi Folks,
>
> I am inside a file system driver, a modified version of vfat to be
> exact, trying to get vendor info that uniquely identifies a USB storage
> device that's associated. I have the device name coming into
> vfat_get_sb(). I looked down through the associated structures I get
> here but nothing obvious pops out. What's the best way to get down to
> the vendor/unique device info from here? Thanks in advance for your
> help and apologies in advance if this is a dumb question.

Do this from userspace, with the tools provided in the udev package,
vol_id and friends.

Why would you want to do this within the kernel?

thanks,

greg k-h
--
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/