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

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



From: David Lehman <dlehman redhat com>

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


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