[rhel6-branch 3/5] Remove unused udev_device_is_{multipath, dmraid}_partition functions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: David Lehman <dlehman@xxxxxxxxxx>

Logical 'and' of return values from udev_device_is_dm_partition and
udev_device_is_dm_{mpath,raid} achieve the same result.

Related: rhbz#709653
---
 storage/udev.py |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/storage/udev.py b/storage/udev.py
index b23e6c6..8b0006f 100644
--- a/storage/udev.py
+++ b/storage/udev.py
@@ -475,21 +475,6 @@ def udev_device_is_dm_partition(info):
     diskname = udev_device_get_dm_partition_disk(info)
     return diskname not in ("", None)
 
-def udev_device_is_dmraid_partition(info):
-    if not udev_device_is_dm_raid(info):
-        return False
-
-    diskname = udev_device_get_dm_partition_disk(info)
-    return diskname not in ("", None)
-
-def udev_device_is_multipath_partition(info):
-    """ Return True if the device is a partition of a multipath device. """
-    if not udev_device_is_dm_mpath(info):
-        return False
-
-    diskname = udev_device_get_dm_partition_disk(info)
-    return diskname not in ("", None)
-
 def udev_device_is_multipath_member(info):
     """ Return True if the device is part of a multipath. """
     return info.get("ID_FS_TYPE") == "multipath_member"
-- 
1.7.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux