From 935aaadd5c9220bf30d60c725f9ef62540eedffc Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 26 Feb 2010 13:34:14 -0500 Subject: Revert "Write a multipath.conf before probing for mpaths." This reverts commit 74e65cbf111a4f17fa393192519910de53d6c7ac. --- storage/devicelibs/mpath.py | 6 ------ 1 file changed, 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()) -- cgit