FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-02-2010, 05:34 PM
David Lehman
 
Default Remove unused udev_device_is_{multipath, dmraid}_partition functions.

Logical 'and' of return values from udev_device_is_dm_partition and
udev_device_is_dm_{mpath,raid} achieve the same result.
---
pyanaconda/storage/udev.py | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/pyanaconda/storage/udev.py b/pyanaconda/storage/udev.py
index 9cba719..cc9f4db 100644
--- a/pyanaconda/storage/udev.py
+++ b/pyanaconda/storage/udev.py
@@ -467,21 +467,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.2.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 06-16-2011, 01:39 PM
Ales Kozumplik
 
Default 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

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

Thread Tools




All times are GMT. The time now is 10:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org