grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* Support for search by disk id module
@ 2017-04-15 10:55 Mat628
  2017-04-15 11:18 ` Andrei Borzenkov
  0 siblings, 1 reply; 6+ messages in thread
From: Mat628 @ 2017-04-15 10:55 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 891 bytes --]

Hi,

I wanted to verify/clarify what would be an acceptable format for a disk id to be used as a search parameter for a module to return the associated device.

Where on Linux, devices are mapped to a hardware specific path.
For hard disks it is

type-product_serial(-partition#)

ata-ST42443343DR_6GE23Y09
ata-ST42443343DR_6GE23Y09-part1

But for a USB flash drive it is

type-vendor_product_serial-(?physical id?)-(part#)

usb-SanDisk_Ultra_4E53324345657878876543-0:0-part1

where product = model name

Would it be okay to shorten this for USB flash drive to

type-product_serial-(part#) ?

usb-Ultra_4E53324345657878876543-part1

To help keep it to a minimal amount of characters the user would have to type. While ensuring the shortened version would not impact its reliability to return the correct device. Even the 'type' could be removed if that is okay with you?

Best regards,

Matt

[-- Attachment #2: Type: text/html, Size: 1524 bytes --]

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

end of thread, other threads:[~2017-04-15 11:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-15 10:55 Support for search by disk id module Mat628
2017-04-15 11:18 ` Andrei Borzenkov
2017-04-15 11:27   ` Mat628
2017-04-15 11:32     ` Vladimir 'phcoder' Serbinenko
2017-04-15 11:54       ` Mat628
2017-04-15 11:38     ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).