Exemplo n.º 1
0
 def _create_cache(self):
     if not self.has_cache:
         LOG.debug("Virtman: create cache for base image %s according to "
                   "multipath %s" %
                   (self.image_name, self.multipath_path))
         self.cached_path = fcg.add_disk(self.multipath_path)
         self.has_cache = True
         LOG.debug("Virtman: create cache completed, cache path = %s" %
                   self.cached_path)
     return self.cached_path
Exemplo n.º 2
0
 def create_cache(base_image):
     """
     :type base_image: BlockDeviceBaseImage
     """
     if not base_image.cached_path:
         LOG.debug("Virtman: create cache for base image %s according to "
                   "multipath %s" %
                   (base_image.image_name, base_image.multipath_path))
         base_image.cached_path = fcg.add_disk(base_image.multipath_path)
         LOG.debug("Virtman: create cache completed, cache path = %s" %
                   base_image.cached_path)
Exemplo n.º 3
0
 def _create_cache(snapshot_dev):
     cached_path = fcg.add_disk(snapshot_dev)
     return cached_path
Exemplo n.º 4
0
 def _create_cache(self, snapshot):
     cached_path = fcg.add_disk(snapshot)
     return cached_path