Skip to contentSkip to conversation

Vendor info from device name

DISCUSSION Robert Mykland 2 participants 3 messages May 9, 2009 – May 11, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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.

Signature · 3 lines
Robert Mykland               Voice: (831) 212-0622
Founder/CTO                   Ascenium Corporation
"A new world of computing fulfilling people's lives"
#1 lore raw
Quoted 9 lines · Robert Mykland

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

#3 lore raw
In reply to a message not in the archive
Quoted 1 line · Robert Mykland

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

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

Quoted 3 lines

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?

Quoted 1 line

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