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