title: Error: Function not implemented when using FileUtils.ln_s
body: <p>The following code causes me trouble:</p>
  
  <pre><code>symlink_path = "symlink/to/mnt/xyz/file"
  remote_path ="/mnt/xyz/data/folderx"
  FileUtils.mkdir(remote_path)
  FileUtils.symlink(symlink_path, "#{remote_path}/#{db_table_name}")
  </code></pre>
  
  <p>FileUtils.cp on the other hand does work (replacing symlink with cp). mkdir works in both cases.</p>
  
  <p>Both, the mount and the symlink work. Is it a problem to create a symlink on a mounted filesystem which points to a symlink which points to another file on that mounted filesystem?</p>
  
  <p>This is the error:</p>
  
  <pre><code>Function not implemented - /home/usr1/webservice/symlink/to/mnt/xyz/file or /mnt/xyz/data/folderx/table_name
  RAILS_ROOT: /home/usr1/webservice
  </code></pre>
  
  <p>Top of trace:</p>
  
  <pre><code>/usr/lib/ruby/1.8/fileutils.rb:338:in `symlink'
  /usr/lib/ruby/1.8/fileutils.rb:338:in `ln_s'
  /usr/lib/ruby/1.8/fileutils.rb:1418:in `fu_each_src_dest0'
  /usr/lib/ruby/1.8/fileutils.rb:336:in `ln_s'
  app/controllers/upload_controller.rb:133:in `upload'
  </code></pre>
  
  <p>edit:</p>
  
  <p>Ok, I just found out that the problem lies within ln and not ruby.
  executing the ln -s command in bash leads to the Function not implemented error.
  Can somebody tell me why this is not possible?</p>