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 00:15  
Related Articles

» How to Create Personal Folders in Microsoft Outlook 2010

Personal folders are a good way to store email on a hard drive such that they are not affected by an exchange server's retention policy.  Creating a personal folder is Outlook 2010 is easy, but not straight forward.  Here's how to do it:First, open Outlook and navigate to the File tab.  Click the "Account Settings" button, and choose the "Account Settings..." option the dropdown menu.Navigate to the "Data Files" tab, and click the "Add" button:You will see a prompt to save a new...

» For Loops in PHP

To create a for loop in php, follow these simple steps:Set a counter variable to some initial value.Check to see if the conditional statement is true.Execute the code within the loop.Increment a counter at the end of each iteration through the loop.The following is pseudo php code for a for loop:123for(init counter; conditional statement; increment counter){ inner code;}As you can see, all of the above steps are taken care of within the for loop, making the syntax short and easy to...

» How to Use gprof (The Basics)

gprof is a GNU profiler, which allows users to see important information about their code such as how much time is spent in a function or how often certain call trees are executed.  It's a very powerful program -- this article will give you only the information you need to know to see a basic report.  Here's how to do it. 1.  Compile Your Code with the -pg flagCompile your C code as you typically would, but add in a -pg flag.  This indicates to the compiler that it should...