helpdavfs2 - Support: sr #108979, how to work with davfs2 on systems...


sr #108979: how to work with davfs2 on systems with low disk space

Submitted by:  Matthijs <igadget>
Submitted on:  Tue 23 Feb 2016 09:07:30 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Open/Closed:  Open Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 28 Feb 2016 09:07:32 AM UTC, comment #1:

As a file system davfs2 must allow applications to do random reading and writing on an open file. There is nothing in HTTP and WebDAV that would be like a random write. You only can upload complete files with HTTP method PUT. For this reason davfs2 needs a local copy of the file to be able to behave like a file system.

What you can do?

1. Do you really need a file system? If you just want to copy some big files from your NFS file system into your davfs2 file system it is much more simple and efficient to use a file transfer tool. You should try cadaver. It has a ftp-like interface and does not need the overhead of a file system. It can copy the files directly to your WebDAV-repository without the need for a local copy. Maybe you can even run it on your NAS device.
Most graphical file managers have WebDAV-support that could be used for copying files between your NFS device and WebDAV your repository.

2. If you need a file system. You can try to use your NFS file system for caching. You can use configuration option "cache_dir" for this. Please read more with "man davfs2.conf". But I never tried to use NFS for the cache of davfs2.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Tue 23 Feb 2016 09:07:30 AM UTC, original submission:

Hi Werner,

First of all thumbs up for all your work on davfs2. I wonder if you could give me some advice on how to deal with my use case:

I have a NAS which does not 'speak' webdav itself and is attached to my VM's using NFS.

As such, my VM's have little local disk space of their own (typically, a 5,6GB root image). The rest of the required space is mounted using said NFS.

Now when I try to upload any file from the VM (located on the NAS) to an external webdav share (mounted via davfs2), it fails for any file which exceeds the available local free space of the VM (typically 3GB or less).

Is there any way I can 'fool' davfs2 to treat files mounted on NFS shares as 'local' so the caching doesn't kick in? Otherwise I will never be able to upload large files from these machines. Or is there any other solution (besides enlarging the local disk space) which I haven't thought of?

Thanks a bunch in advance!

Matthijs <igadget>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by wbaumann (Posted a comment)
  • -email is unavailable- added by igadget (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-18 wbaumann StatusIn Progress => Done
    2016-02-28 wbaumann StatusNone => In Progress
        Assigned toNone => wbaumann

    Back to the top

    Powered by Savane 3.3