public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Vendor info from device name
@ 2009-05-09  0:16 Robert Mykland
  2009-05-09  4:34 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Mykland @ 2009-05-09  0:16 UTC (permalink / raw)
  To: linux-kernel

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.

Regards,

-- Robert.

-- 
Robert Mykland               Voice: (831) 212-0622
Founder/CTO                   Ascenium Corporation
"A new world of computing fulfilling people's lives"


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Vendor info from device name
  2009-05-09  0:16 Vendor info from device name Robert Mykland
@ 2009-05-09  4:34 ` Greg KH
       [not found]   ` <4A086CF8.3000503@ascenium.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2009-05-09  4:34 UTC (permalink / raw)
  To: Robert Mykland; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Vendor info from device name
       [not found]   ` <4A086CF8.3000503@ascenium.com>
@ 2009-05-11 19:28     ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2009-05-11 19:28 UTC (permalink / raw)
  To: Robert Mykland; +Cc: linux-kernel

On Mon, May 11, 2009 at 11:22:48AM -0700, Robert Mykland wrote:
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Please don't use html, the linux-kernel list will reject it.

> I want to do this in the kernel because I want to apply some particular
> file security measures to a specific device, but not to all devices
> with a vfat file system.

But you would do that from userspace right?

What block driver would be able to look into the file system contents?

> Thus a need to identify the device from the file system driver.

What driver needs this to be added to it?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-11 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-09  0:16 Vendor info from device name Robert Mykland
2009-05-09  4:34 ` Greg KH
     [not found]   ` <4A086CF8.3000503@ascenium.com>
2009-05-11 19:28     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox