def mount_share(mount_path, export_path, export_type, options=None):
 utils.execute('mkdir', '-p', mount_path)
 mount_cmd = ['mount', '-t', export_type]
 if (options is not None):
  mount_cmd.extend(options)
 mount_cmd.extend([export_path, mount_path])
 try:
  utils.execute(run_as_root=True, *mount_cmd)
 except processutils.ProcessExecutionError as exc:
  if ('Device or resource busy' in six.text_type(exc)):
   LOG.warning(_LW('%s is already mounted'), export_path)
  else:
   raise

def mount_share ( mount_path , export_path , export_type , options = None ) : utils . execute ( 'mkdir' , '-p' , mount_path ) mount_cmd = [ 'mount' , '-t' , export_type ] if ( options is not None ) : mount_cmd . extend ( options ) mount_cmd . extend ( [ export_path , mount_path ] ) try : utils . execute ( run_as_root = True , * mount_cmd ) except processutils . ProcessExecutionError as exc : if ( 'Device or resource busy' in six . text_type ( exc ) ) : LOG . warning ( _LW ( '%s is already mounted' ) , export_path ) else : raise
mount a remote export to mount_path .