SATA inquiry property generation doesn't work as advertised
The SATA code generates inquiry properties using the model name of a SATA device. It tries to split the model name into vendor and product ID strings at the first whitespace separating the two.
The code thats splitting the model string into vendor and product ID strings doesn't work right when the model string does not start with a vendor name. These are the inquiry properties generated for a Seagate disk, which illustrate the problem:
name='inquiry-revision-id' type=string items=1 value='2AR10002' name='inquiry-product-id' type=string items=1 value='HN-M101MBB' name='inquiry-vendor-id' type=string items=1 value='ST1000LM024'
mpt_sas contains a copy of that code which also needs fixing.
Updated by Electric Monk over 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 0c6eaab480b44a0c790ad94e7cb6084792411de9 Author: Hans Rosenfeld <firstname.lastname@example.org> Date: 2015-11-05T16:59:00.000Z 6299 SATA inquiry property generation doesn't work as advertised Reviewed by: Dan McDonald <email@example.com> Reviewed by: Garrett D'Amore <firstname.lastname@example.org> Reviewed by: Josef 'Jeff' Sipek <email@example.com>