File multipath-tools-kpartx-run-on-readonly-devices of Package multipath-tools
commit 451510a56a7d7e18cec3020fac0baf36769aacb9
Author: Hannes Reinecke <hare@suse.de>
Date: Tue Feb 3 11:16:35 2009 +0100
Check for !SUSPENDED in kpartx rules
Read-only devices appear as DM_STATE=READONLY, so we should
invert the check in kpartx rules to have kpartx run on
readonly devices, too.
References: 440959
Signed-off-by: Hannes Reinecke <hare@suse.de>
diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
index 3e09dcf..ddb65e2 100644
--- a/kpartx/kpartx.rules
+++ b/kpartx/kpartx.rules
@@ -30,7 +30,7 @@ ENV{DM_PART}=="?*", \
SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}-part$env{DM_PART}"
# Create dm tables for partitions
-ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="mpath-*", \
+ENV{DM_STATE}!="SUSPENDED", ENV{DM_UUID}=="mpath-*", \
RUN+="/sbin/kpartx -a -p _part /dev/$kernel"
ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="DMRAID-*", \
RUN+="/sbin/kpartx -a -p _part /dev/$kernel"