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 refresh(self): with self._syncroot: lvm.invalidateCache() self.__domainCache.clear()
def refreshStorage(self): multipath.rescan() lvm.invalidateCache() self.storageStale = False
def invalidateStorage(self): self.storageStale = True lvm.invalidateCache()