Skip to contentSkip to conversation

multipath-toosl: Use current name of the divice node ($name)

PATCH New Guido Günther 1 participant 1 message Nov 21, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-toosl: Use current name of the divice node ($name)

instead of the kernel's name ($kernel). Otherwise we might end up looking at a wrong or nonexistant node.

---
 kpartx/kpartx.rules |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kpartx/kpartx.rules +2 -2
index f32c718..425afd8 100644
@@ -27,9 +27,9 @@ ENV{DM_PART}=="?*", \
 
 # Create dm tables for partitions
 ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="mpath-*", \
-        RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
+        RUN+="/sbin/kpartx -a -p -part /dev/$name"
 ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="dmraid-*", \
-        RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
+        RUN+="/sbin/kpartx -a -p -part /dev/$name"
 
 LABEL="kpartx_end"
 
Signature · 1 line
1.6.5.3