None


Resolve Input/Output error when trying to write to WebDAV (davfs2) mount like box.net on Linux

(0 votes, average 0 out of 5)

These instructions assume that you already configured the WebDAV filesystem by following this article.

If you are mounting a WebDAV folder on Linux using the davfs2 FUSE filesystem, you may encounter the following error when trying to write a file to the WebDAV filesystem:

cp: cannot create regular file `test.txt': Input/output error

This is caused by the WebDAV filesystem not supporting file locks. The solution is to disable file locks in the davfs2 configuration file, located at /etc/davfs2/davfs2.conf. Add (or uncomment) the following line:

use_locks      	0

Unmount and remount the WebDAV filesystem and writes should now work.

Partner Links:
Last Updated on Sunday, 20 November 2011 06:15  
Related Articles

» Copy or Backup Files Faster in Windows 7 or Vista Using Window's Robocopy

In all versions of Windows 7 there is a little known but easy to use utility bundled in called Robocopy.  Why would you want to use Robocopy over just dragging and dropping or copying and pasting files and folders over manually? Here are some reasons why you might want to add Robocopy to your toolbox of useful utilities:Robocopy is MUCH faster at copying a large number of files from one location to another compared to the built in Windows copy.Robocopy can intelligently "Backup" (Mirror) a...

» How to Find a Process Using a Particular Port in Linux

If you are trying to find the process using a particular port in Linux, you can do the following: lsof -i tcp:2700 The above example will return a list of processes using the TCP port with ID 2700.Alternatively you can view all open network connections by doing the following: sudo netstat -nlp 

» Access restriction on class due to restriction on required library

If you are using Eclipse or Rational Application Developer (RAD) and encounter the following error causing your build to break, here is a work around that will help you get past the problem:Error: "Access Restriction: The type {class name} is not accessible due to restriction on required library: {library path}"Work around: In Eclipse or RAD, go to Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (Access...