コード例 #1
0
ファイル: baseimage.py プロジェクト: vmthunder/virtman
 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)
コード例 #2
0
ファイル: baseimage_new.py プロジェクト: vmthunder/virtman
 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)
コード例 #3
0
ファイル: snapshot.py プロジェクト: vmthunder/virtman
 def _delete_cache(snapshot_dev):
     fcg.rm_disk(snapshot_dev)
     return True
コード例 #4
0
ファイル: snapshot.py プロジェクト: vmthunder/packages
 def _delete_cache(self, snapshot):
     fcg.rm_disk(snapshot)
     return True