def _delete_cache(self): LOG.debug("Virtman: start to delete cache according to multipath %s " % self.multipath_path) fcg.rm_disk(self.multipath_path) self.has_cache = False LOG.debug("Virtman: delete cache according to multipath %s completed" % self.multipath_path)
def delete_cache(base_image): """ :type base_image: BlockDeviceBaseImage """ if base_image.cached_path: LOG.debug("Virtman: start to delete cache according to multipath %s " % base_image.multipath_path) fcg.rm_disk(base_image.multipath_path) base_image.cached_path = None LOG.debug("Virtman: delete cache according to multipath %s " "completed" % base_image.multipath_path)
def _delete_cache(snapshot_dev): fcg.rm_disk(snapshot_dev) return True
def _delete_cache(self, snapshot): fcg.rm_disk(snapshot) return True