def _mount_filesystem(dev_path, dir):
 try:
  (_out, err) = utils.execute('mount', '-t', 'ext2,ext3,ext4,reiserfs', dev_path, dir, run_as_root=True)
 except exception.ProcessExecutionError as e:
  err = str(e)
 return err

def _mount_filesystem ( dev_path , dir ) : try : ( _out , err ) = utils . execute ( 'mount' , '-t' , 'ext2,ext3,ext4,reiserfs' , dev_path , dir , run_as_root = True ) except exception . ProcessExecutionError as e : err = str ( e ) return err
mounts the device specified by dev_path in dir .