diff options
-rw-r--r-- | storage/devicelibs/mpath.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/storage/devicelibs/mpath.py b/storage/devicelibs/mpath.py index 75911c9a1..adb2644f3 100644 --- a/storage/devicelibs/mpath.py +++ b/storage/devicelibs/mpath.py @@ -1,6 +1,5 @@ from ..udev import * import iutil -import os def parseMultipathOutput(output): # this function parses output from "multipath -d", so we can use its @@ -62,11 +61,6 @@ def identifyMultipaths(devices): # [sda, sdd], [[sdb, sdc]], [sr0, sda1, sdd1, sdd2]] log.info("devices to scan for multipath: %s" % [d['name'] for d in devices]) - if not os.path.exists("/etc/multipath.conf"): - cfg = MultipathConfigWriter().write() - open("/etc/multipath.conf", "w+").write(cfg) - del cfg - topology = parseMultipathOutput(iutil.execWithCapture("multipath", ["-d",])) # find the devices that aren't in topology, and add them into it... topodevs = reduce(lambda x,y: x.union(y), topology.values(), set()) |