Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   Remove the multipath name generator, it is no longer used. (http://www.linux-archive.org/ubuntu-kernel-team/309960-remove-multipath-name-generator-no-longer-used.html)

Peter Jones 01-15-2010 08:24 PM

Remove the multipath name generator, it is no longer used.
 
With the move to getting mpath setup from /sbin/multipath, we no longer
need to generate device names.
---
storage/devices.py | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index c2054e6..0e8db34 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2892,20 +2892,6 @@ class DMRaidArrayDevice(DMDevice):
def dracutSetupString(self):
return "rd_DM_UUID=%s" % self.name

-
-class _MultipathDeviceNameGenerator:
- def __init__(self):
- self.number = 0
- def get(self):
- ret = self.number
- self.number += 1
- return ret
-_multipathDeviceNameGenerator = _MultipathDeviceNameGenerator()
-
-def generateMultipathDeviceName():
- number = _multipathDeviceNameGenerator.get()
- return "mpath%s" % (number, )
-
class MultipathDevice(DMDevice):
""" A multipath device """
_type = "dm-multipath"
--
1.6.5.2

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


All times are GMT. The time now is 02:48 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.