Exemplo n.º 1
0
 def unmount(self):
     """
     Unmounts the backup followed by clean up of the directories
     and system links created by backup function.
     :return: None
     """
     try:
         self._release_nodes()
         delete_dir(self.mount_path)
     except:
         raise
     finally:
         self._squashfs_umount()
Exemplo n.º 2
0
 def unmount(self):
     """
     Unmounts the backup followed by clean up of the directories
     and system links created by backup function.
     :return: None
     """
     try:
         self._release_nodes()
         delete_dir(self.mount_path)
     except:
         raise
     finally:
         self._squashfs_umount()
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