New patch submitted by Eduardo Warszawski (ewarszaw(a)redhat.com)
You can review this change at:
http://gerrit.usersys.redhat.com/636
commit 7e8dc5a4bef64a1a5861d782e91ed0d09da2deb2
Author: Eduardo Warszawski <ewarszaw(a)redhat.com>
Date: Wed Jun 29 18:52:31 2011 +0300
BZ#717658 - Remove unnecessary SDF.refreshStorage().
Change-Id: I7de05de83f17a14895c150c331e971f35d7ae547
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index 2aaf822..ab5a59d 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -747,7 +747,7 @@ class HSM:
:param guid: The GUID of the device you want to get info on.
:type guid: UUID
- :param options: ?
+ :param options: ? DEPRECATED
:returns: Dict of all the info on the device.
:rtype: dict
@@ -756,15 +756,6 @@ class HSM:
"""
vars.task.setDefaultException(se.BlockDeviceActionError("GUID: %s" %
str(guid)))
#getSharedLock(connectionsResource...)
- rescan = True
- try:
- if options:
- rescan = options.get("rescan", True)
- except:
- self.log.warning("ignore options %s" % (str(options)))
- if rescan:
- SDF.refreshStorage()
-
try:
devInfo = self._getDeviceList(guids=[guid])[0]
for p in devInfo["pathstatus"]: