Example #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
Example #2
0
File: sdc.py Project: rexhsu/vdsm
 def refresh(self):
     with self._syncroot:
         lvm.invalidateCache()
         self.__domainCache.clear()
Example #3
0
 def refresh(self):
     with self._syncroot:
         lvm.invalidateCache()
         self.__domainCache.clear()
Example #4
0
 def refreshStorage(self):
     multipath.rescan()
     lvm.invalidateCache()
     self.storageStale = False
Example #5
0
 def invalidateStorage(self):
     self.storageStale = True
     lvm.invalidateCache()
Example #6
0
File: sdc.py Project: ekohl/vdsm
 def refreshStorage(self):
     multipath.rescan()
     lvm.invalidateCache()
     self.storageStale = False
Example #7
0
File: sdc.py Project: ekohl/vdsm
 def invalidateStorage(self):
     self.storageStale = True
     lvm.invalidateCache()