Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102539357
D32684.id98078.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
548 B
Referenced Files
None
Subscribers
None
D32684.id98078.diff
View Options
diff --git a/sys/cam/scsi/scsi_xpt.c b/sys/cam/scsi/scsi_xpt.c
--- a/sys/cam/scsi/scsi_xpt.c
+++ b/sys/cam/scsi/scsi_xpt.c
@@ -1615,6 +1615,14 @@
*/
slen = 0;
}
+ /*
+ * In apparent violation of the spec, some
+ * devices pad their serial numbers with
+ * trailing spaces. Remove them.
+ */
+ while (slen > 0 &&
+ serial_buf->serial_num[slen - 1] == ' ')
+ slen--;
memcpy(path->device->serial_num,
&serial_buf->serial_num[start], slen);
path->device->serial_num_len = slen;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 14, 7:06 PM (6 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14632530
Default Alt Text
D32684.id98078.diff (548 B)
Attached To
Mode
D32684: cam: Remove trailing spaces from serial numbers too
Attached
Detach File
Event Timeline
Log In to Comment