Example #1
0
 def unmount(self, mount_point):
     if operating_system.is_mount(mount_point):
         try:
             utils.execute("umount", mount_point,
                           run_as_root=True, root_helper='sudo')
         except exception.ProcessExecutionError:
             msg = _("Error unmounting '%s'.") % mount_point
             log_and_raise(msg)
     else:
         LOG.debug("'%s' is not a mounted fs, cannot unmount", mount_point)
Example #2
0
 def wait_for_mount():
     return operating_system.is_mount(mount_point)
Example #3
0
 def wait_for_mount():
     return operating_system.is_mount(mount_point)