|
|
17b0f1 |
From 33d6abe2452c8222b926f917171d65ed934d0136 Mon Sep 17 00:00:00 2001
|
|
|
17b0f1 |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
17b0f1 |
Date: Tue, 11 Apr 2017 15:15:00 +0200
|
|
|
17b0f1 |
Subject: [PATCH] rules/40-redhat.rules: rules should be on one line
|
|
|
17b0f1 |
|
|
|
17b0f1 |
rhel-only
|
|
|
17b0f1 |
Related: #1274401
|
|
|
17b0f1 |
---
|
|
|
17b0f1 |
rules/40-redhat.rules | 8 ++------
|
|
|
17b0f1 |
1 file changed, 2 insertions(+), 6 deletions(-)
|
|
|
17b0f1 |
|
|
|
17b0f1 |
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
|
|
|
17b0f1 |
index c928d412b7..34a1df9c48 100644
|
|
|
17b0f1 |
--- a/rules/40-redhat.rules
|
|
|
17b0f1 |
+++ b/rules/40-redhat.rules
|
|
|
17b0f1 |
@@ -29,14 +29,10 @@ ACTION=="remove", GOTO="zfcp_scsi_device_end"
|
|
|
17b0f1 |
KERNEL=="sd*", SUBSYSTEMS=="ccw", DRIVERS=="zfcp", ENV{.ID_ZFCP_BUS}="1"
|
|
|
17b0f1 |
|
|
|
17b0f1 |
# For SCSI disks
|
|
|
17b0f1 |
-KERNEL=="sd*[!0-9]", SUBSYSTEMS=="scsi",
|
|
|
17b0f1 |
- ENV{.ID_ZFCP_BUS}=="1", ENV{DEVTYPE}=="disk",
|
|
|
17b0f1 |
- SYMLINK+="disk/by-path/ccw-$attr{hba_id}-zfcp-$attr{wwpn}:$attr{fcp_lun}"
|
|
|
17b0f1 |
+KERNEL=="sd*[!0-9]", SUBSYSTEMS=="scsi", ENV{.ID_ZFCP_BUS}=="1", ENV{DEVTYPE}=="disk", SYMLINK+="disk/by-path/ccw-$attr{hba_id}-zfcp-$attr{wwpn}:$attr{fcp_lun}"
|
|
|
17b0f1 |
|
|
|
17b0f1 |
|
|
|
17b0f1 |
# For partitions on a SCSI disk
|
|
|
17b0f1 |
-KERNEL=="sd*[0-9]", SUBSYSTEMS=="scsi",
|
|
|
17b0f1 |
- ENV{.ID_ZFCP_BUS}=="1", ENV{DEVTYPE}=="partition",
|
|
|
17b0f1 |
- SYMLINK+="disk/by-path/ccw-$attr{hba_id}-zfcp-$attr{wwpn}:$attr{fcp_lun}-part%n"
|
|
|
17b0f1 |
+KERNEL=="sd*[0-9]", SUBSYSTEMS=="scsi", ENV{.ID_ZFCP_BUS}=="1", ENV{DEVTYPE}=="partition", SYMLINK+="disk/by-path/ccw-$attr{hba_id}-zfcp-$attr{wwpn}:$attr{fcp_lun}-part%n"
|
|
|
17b0f1 |
|
|
|
17b0f1 |
LABEL="zfcp_scsi_device_end"
|