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
def refreshStorage(self): multipath.rescan() lvm.invalidateCache() self.storageStale = False