[haiku-bugs] Re: [Haiku] #9012: Add disk device name

  • From: "mmlr" <trac@xxxxxxxxxxxx>
  • Date: Wed, 28 Nov 2012 20:34:02 -0000

#9012: Add disk device name
---------------------------------------+----------------------------
   Reporter:  dsjonny                  |      Owner:  stippi
       Type:  enhancement              |     Status:  new
   Priority:  normal                   |  Milestone:  R1
  Component:  Applications/DriveSetup  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  0                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by mmlr):

 For the USB disk handling this is not the way to go, as you can't possibly
 map the usb_disk path to the usb_raw path (as you already figured out).

 The "KINGSTON SMS..." name of the disk comes from the disk device manager
 and it in turn gets it from the scsi_periph driver via B_GET_DEVICE_NAME.
 To get the same for USB devices, one only needs to implement this ioctl in
 usb_disk to return the vendor/product strings. As that is pretty straight
 forward, I've implemented it in hrev44920. You should therefore not have
 to handle USB disks in a special way.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9012#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: