Project

General

Profile

Actions

Bug #3220

open

noncompliant devices break sd-config-list

Added by Keith Wesolowski about 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
driver - device drivers
Start date:
2012-09-24
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Certain targets, such as those constructed by some Dell controllers, return NUL-padded VID and PID strings in their INQUIRY responses. SPC 6.6 and 4.3.1 and explicitly require that these fields be padded with spaces (ASCII 0x20). When sd encounters such a noncompliant device, sd-config-list processing does not work correctly and these devices generally will not be matched if the configuration template contains more characters than the device provides prior to the first NUL byte. The comment near 4458 in sd.c assumes a compliant device, and by modifying this code somewhat to eliminate this assumption, it's fairly easy to fix this problem without breaking compliant devices.


Related issues

Related to illumos gate - Feature #2665: sd.conf should be able to override physical-block-sizeResolvedGeorge Wilson2012-05-01

Actions
Actions

Also available in: Atom PDF