[kexec-tools] remove emitdms call and code as its no longer needed

Neil Horman nhorman at fedoraproject.org
Thu Mar 10 16:05:09 UTC 2011


commit 2fb552037c34153801f8a17f3df7641a5fb154fe
Author: Neil Horman <nhorman at tuxdriver.com>
Date:   Thu Mar 10 11:04:43 2011 -0500

    remove emitdms call and code as its no longer needed

 kexec-tools.spec |    5 ++++-
 mkdumprd         |   21 ---------------------
 2 files changed, 4 insertions(+), 22 deletions(-)
---
diff --git a/kexec-tools.spec b/kexec-tools.spec
index b4c62fc..3c9f205 100644
--- a/kexec-tools.spec
+++ b/kexec-tools.spec
@@ -1,6 +1,6 @@
 Name: kexec-tools
 Version: 2.0.0 
-Release: 42%{?dist}
+Release: 43%{?dist}
 License: GPLv2
 Group: Applications/System
 Summary: The kexec/kdump userspace component.
@@ -280,6 +280,9 @@ done
 
 
 %changelog
+* Thu Mar 10 2011 Neil Horman <nhorman at redhat.com> - 2.0.0-43
+- Remove vestigual emitdms code and call from mkdumprd
+
 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.0-42
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
diff --git a/mkdumprd b/mkdumprd
index b95b69f..69146d0 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -947,25 +947,6 @@ emitdm()
     emit "echo \"$(/sbin/dmsetup table $1)\" | /sbin/dmsetup create \"$1\" $UUID"
 }
 
-emitdms()
-{
-    [ -z "$MPATHS" -a -z "$DMRAIDS" ] && return 0
-    echo dm list $MPATHS $DMRAIDS | nash --force --quiet | \
-            while read ACTION NAME ; do
-        case $ACTION in
-        rmparts)
-            emit rmparts "$NAME"
-            ;;
-        create)
-            emitdm "$NAME"
-            ;;
-        part)
-            emit /sbin/kpartx -pp -a \"/dev/mapper/$NAME\"
-            ;;
-        esac
-    done
-}
-
 if [ -z "$MNTIMAGE" -o -z "$IMAGE" ]; then
     error "Error creating temporaries.  Try again"
     exit 1
@@ -1850,8 +1831,6 @@ if [ -n "$net_list" ]; then
     done
 fi
 
-emitdms
-
 if [ -n "$raiddevices" ]; then
     for dev in $raiddevices; do
 	cp -a /dev/${dev} $MNTIMAGE/dev


More information about the scm-commits mailing list