From patchwork Sat Nov 21 17:10:10 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: 61960 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 nALHAVE5002231 for ; Sat, 21 Nov 2009 17:10:32 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 0C5F48E0529; Sat, 21 Nov 2009 12:10:30 -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 nALHATRs013888 for ; Sat, 21 Nov 2009 12:10:29 -0500 Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.13]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nALHATAI016892 for ; Sat, 21 Nov 2009 12:10:29 -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 nALHADVk019971 for ; Sat, 21 Nov 2009 12:10:14 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id A25DC9C003 for ; Sat, 21 Nov 2009 18:10:12 +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 0KzAwV9IC0ea for ; Sat, 21 Nov 2009 18:10:11 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id BB6B951E63; Sat, 21 Nov 2009 18:10:10 +0100 (CET) Date: Sat, 21 Nov 2009 18:10:10 +0100 From: Guido =?iso-8859-1?Q?G=FCnther?= To: dm-devel@redhat.com Message-ID: <20091121171010.GA14931@bogon.sigxcpu.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-RedHat-Spam-Score: -0.001 (AWL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.13 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH]: multipath-tools: fix udev rule for dmraid 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 From: Hannes Reinecke Date: Tue, 24 Jun 2008 16:38:37 +0200 Subject: [PATCH] Fix udev rules for dmraid The kpartx_id program is located under /lib/udev, so we don't need to call it with the full pathname. And we should also create persistent links for dmraid tables. --- kpartx/kpartx.rules | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules index f32c718..5a62d57 100644 --- a/kpartx/kpartx.rules +++ b/kpartx/kpartx.rules @@ -9,7 +9,7 @@ ACTION=="remove", GOTO="kpartx_end" ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end" -ENV{DM_UUID}=="?*", IMPORT{program}=="/lib/udev/kpartx_id %M %m $env{DM_UUID}" +ENV{DM_UUID}=="?*", IMPORT{program}=="kpartx_id %M %m $env{DM_UUID}" OPTIONS="link_priority=50" @@ -18,7 +18,7 @@ ENV{DM_UUID}=="mpath-*", \ SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}" # Create persistent links for dmraid tables -ENV{DM_UUID}=="mpath-*", \ +ENV{DM_UUID}=="dmraid-*", \ SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}" # Create persistent links for partitions --