示例#1
0
    def refreshStorage(self):
        self.__staleStatus = self.STORAGE_REFRESHING

        multipath.rescan()
        lvm.invalidateCache()

        # If a new invalidateStorage request came in after the refresh
        # started then we cannot flag the storages as updated (force a
        # new rescan later).
        with self._syncroot:
            if self.__staleStatus == self.STORAGE_REFRESHING:
                self.__staleStatus = self.STORAGE_UPDATED
示例#2
0
文件: sdc.py 项目: vikas-lamba/vdsm
 def refreshStorage(self):
     multipath.rescan()
     lvm.invalidateCache()
     self.storageStale = False
示例#3
0
文件: sdc.py 项目: ekohl/vdsm
 def refreshStorage(self):
     multipath.rescan()
     lvm.invalidateCache()
     self.storageStale = False