Exemplo n.º 1
0
 def _mount_partitions(self):
     for partition in self.backupset.partitions:
         node = self.NODE_POOL.acquire()
         image_path = self._get_image_path(partition)
         image_mount_path = self._get_image_mount_path(partition)
         create_dir(image_mount_path)
         node.mount(image_path, partition.file_system, image_mount_path)
         self.nodes.append(node)
Exemplo n.º 2
0
 def _mount_partitions(self):
     for partition in self.backupset.partitions:
         node = self.NODE_POOL.acquire()
         image_path = self._get_image_path(partition)
         image_mount_path = self._get_image_mount_path(partition)
         create_dir(image_mount_path)
         node.mount(image_path, partition.file_system, image_mount_path)
         self.nodes.append(node)
Exemplo n.º 3
0
 def mount(self):
     """
     Creates the necessary directory structures and system links,
     followed by mounting of the backup.
     :return: None
     """
     try:
         self._squashfs_mount()
         create_dir(self.mount_path)
         self._mount_partitions()
         self._status['status'] = constants.STATUS_RUNNING
         if not self._is_mounted_correctly():
             self._release_nodes()
             delete_dir(self.mount_path)
             self._squashfs_umount()
     except:
         self._squashfs_umount()
         raise
Exemplo n.º 4
0
 def mount(self):
     """
     Creates the necessary directory structures and system links,
     followed by mounting of the backup.
     :return: None
     """
     try:
         self._squashfs_mount()
         create_dir(self.mount_path)
         self._mount_partitions()
         self._status['status'] = constants.STATUS_RUNNING
         if not self._is_mounted_correctly():
             self._release_nodes()
             delete_dir(self.mount_path)
             self._squashfs_umount()
     except:
         self._squashfs_umount()
         raise