Accepting request 238575 from home:rmilasan:branches:Base:System

- Fix missing rule for generating links for partitions also (bnc#883032)
  Add:
  sg3_utils-fix-missing-rule-for-scsi_serial-partitions.patch

OBS-URL: https://build.opensuse.org/request/show/238575
OBS-URL: https://build.opensuse.org/package/show/Base:System/sg3_utils?expand=0&rev=42
This commit is contained in:
Robert Milasan 2014-06-25 07:57:15 +00:00 committed by Git OBS Bridge
parent cba80c3a97
commit d385e6706e
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,12 @@
Index: sg3_utils-1.39/scripts/58-scsi-sg3_symlink.rules
===================================================================
--- sg3_utils-1.39/scripts/58-scsi-sg3_symlink.rules
+++ sg3_utils-1.39/scripts/58-scsi-sg3_symlink.rules
@@ -10,6 +10,7 @@ ENV{DM_MULTIPATH_DEVICE_PATH}=="1", GOTO
# Select which identifier to use per default
# 0: vpd page 0x80 identifier
ENV{SCSI_IDENT_SERIAL}=="?*", ENV{DEVTYPE}=="disk", SYMLINK+="disk/by-id/scsi-S$env{SCSI_VENDOR}_$env{SCSI_MODEL}_$env{SCSI_IDENT_SERIAL}"
+ENV{SCSI_IDENT_SERIAL}=="?*", ENV{DEVTYPE}=="partition", SYMLINK+="disk/by-id/scsi-S$env{SCSI_VENDOR}_$env{SCSI_MODEL}_$env{SCSI_IDENT_SERIAL}-part%n"
# 1: NAA identifier (prefix 3)
ENV{SCSI_IDENT_LUN_NAA}=="?*", ENV{DEVTYPE}=="disk", SYMLINK+="disk/by-id/scsi-3$env{SCSI_IDENT_LUN_NAA}"
ENV{SCSI_IDENT_LUN_NAA}=="?*", ENV{DEVTYPE}=="partition", SYMLINK+="disk/by-id/scsi-3$env{SCSI_IDENT_LUN_NAA}-part%n"

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jun 25 07:53:48 UTC 2014 - rmilasan@suse.com
- Fix missing rule for generating links for partitions also (bnc#883032)
Add:
sg3_utils-fix-missing-rule-for-scsi_serial-partitions.patch
-------------------------------------------------------------------
Fri Jun 20 13:15:12 UTC 2014 - jengelh@inai.de

View File

@ -26,6 +26,7 @@ Group: Hardware/Other
Url: http://sg.danny.cz/sg/sg3_utils.html
Source: http://sg.danny.cz/sg/p/%name-%version.tar.xz
Patch0: sg3_utils-fix-missing-rule-for-scsi_serial-partitions.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: udev
BuildRequires: xz
@ -80,6 +81,7 @@ applications that want to make use of libsgutils.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static --with-pic