From f393a5c15631f883883df41e85b3209b33005cd6 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 20 Sep 2013 09:42:27 +0200 Subject: [PATCH] udev: remove unused line in 69-dm-lvm-metad.rules The explicit check for *_raid_member is not actually needed as this gets filtered out by the ENV{ID_FS_TYPE}!="LVM2_member|LVM1_member" rule. --- udev/69-dm-lvm-metad.rules.in | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/udev/69-dm-lvm-metad.rules.in b/udev/69-dm-lvm-metad.rules.in index 6363a7989..ba433967e 100644 --- a/udev/69-dm-lvm-metad.rules.in +++ b/udev/69-dm-lvm-metad.rules.in @@ -27,6 +27,7 @@ ENV{LVM_PV_GONE}=="1", GOTO="lvm_scan" # Only process devices already marked as a PV - this requires blkid to be called before. ENV{ID_FS_TYPE}!="LVM2_member|LVM1_member", GOTO="lvm_end" +ENV{DM_MULTIPATH_DEVICE_PATH}=="1", GOTO="lvm_end" # Inform lvmetad about any PV that is gone. ACTION=="remove", GOTO="lvm_scan" @@ -76,11 +77,6 @@ LABEL="lvm_scan" # MD | | X | X* | | # loop | | X | X* | | # other | X | | X | | X - -# Skip device that is a multipath or RAID component -ENV{DM_MULTIPATH_DEVICE_PATH}=="1", GOTO="lvm_end" -ENV{ID_FS_TYPE}=="*_raid_member", GOTO="lvm_end" - RUN+="(LVM_EXEC)/lvm pvscan --background --cache --activate ay --major $major --minor $minor", ENV{LVM_SCANNED}="1" LABEL="lvm_end"