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 Kernel Team

 
 
LinkBack Thread Tools
 
Old 01-15-2010, 08:24 PM
Peter Jones
 
Default 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
 

Thread Tools




All times are GMT. The time now is 05:53 AM.

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