Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
systemd.6694
0001-scsi_id-Fixup-prefix-for-pre-SPC-inquiry-r...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-scsi_id-Fixup-prefix-for-pre-SPC-inquiry-reply.patch of Package systemd.6694
From 422b3c6de7a2986046c941ba17bcf00bf35f067a Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Wed, 13 Sep 2017 09:08:28 +0200 Subject: [PATCH 1/1] scsi_id: Fixup prefix for pre-SPC inquiry reply The prefix for EMC Symmetrix pre-SPC VPD inquiry reply is always SCSI_ID_NAA, so we need to hardcode it to avoid false values here. Signed-off-by: Hannes Reinecke <hare@suse.com> [fbui: fixes bsc#1039099] --- src/udev/scsi_id/scsi_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udev/scsi_id/scsi_serial.c b/src/udev/scsi_id/scsi_serial.c index ffb771812..d9d454e9d 100644 --- a/src/udev/scsi_id/scsi_serial.c +++ b/src/udev/scsi_id/scsi_serial.c @@ -594,7 +594,7 @@ static int check_fill_0x83_prespc3(struct udev *udev, { int i, j; - serial[0] = hex_str[id_search->id_type]; + serial[0] = hex_str[SCSI_ID_NAA]; /* serial has been memset to zero before */ j = strlen(serial); /* j = 1; */ @@ -743,7 +743,7 @@ static int do_scsi_page83_prespc3_inquiry(struct udev *udev, if (page_83[6] == 0) return 2; - serial[0] = hex_str[id_search_list[0].id_type]; + serial[0] = hex_str[SCSI_ID_NAA]; /* * The first four bytes contain data, not a descriptor. */ -- 2.14.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor