Vendor info from device name
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"
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
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