grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Support for search by disk id module


From: Mat628
Subject: Support for search by disk id module
Date: Sat, 15 Apr 2017 06:55:19 -0400

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]