From patchwork Sat Nov 21 20:29:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Guido_G=C3=BCnther?= X-Patchwork-Id: 61977 Received: from hormel.redhat.com (hormel1.redhat.com [209.132.177.33]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nALKUE14031359 for ; Sat, 21 Nov 2009 20:30:14 GMT Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id 6767561AB14; Sat, 21 Nov 2009 15:30:13 -0500 (EST) Received: from int-mx03.intmail.prod.int.phx2.redhat.com (nat-pool.util.phx.redhat.com [10.8.5.200]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id nALKUB8P004505 for ; Sat, 21 Nov 2009 15:30:11 -0500 Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.11]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nALKUBgS012047 for ; Sat, 21 Nov 2009 15:30:11 -0500 Received: from honk.sigxcpu.org (static-87-79-238-240.netcologne.de [87.79.238.240]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nALKTsm8032563 for ; Sat, 21 Nov 2009 15:29:54 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 8B7149C003 for ; Sat, 21 Nov 2009 21:29:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xrMfLV8uBE85 for ; Sat, 21 Nov 2009 21:29:53 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 955C351E1A; Sat, 21 Nov 2009 21:29:52 +0100 (CET) Date: Sat, 21 Nov 2009 21:29:52 +0100 From: Guido =?iso-8859-1?Q?G=FCnther?= To: dm-devel@redhat.com Message-ID: <20091121202952.GA7011@bogon.sigxcpu.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-RedHat-Spam-Score: -0.875 (AWL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.11 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH] multipath-toosl: Use current name of the divice node ($name) X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.5 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules index f32c718..425afd8 100644 --- a/kpartx/kpartx.rules +++ b/kpartx/kpartx.rules @@ -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"