helpdavfs2 - Support: sr #109244, How to know when a file was...


sr #109244: How to know when a file was actually finished uploading to server

Submitted by:  None
Submitted on:  Tue 31 Jan 2017 09:27:14 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  In Progress
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Originator Email:  -email is unavailable- 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.


Wed 01 Feb 2017 05:34:09 PM UTC, comment #1:

By default davfs2 transfers files to the server asynchronously. Because of this it is not well suited for your task of measuring upload speed. A tool like curl is probably better suited,

If you for some reason must use davfs2 you can

  • set option "delay_upload 0": davfs2 will now upload the file as soon as it is closed. But note: the file is first written to the local cache and only when it is closed it is transfered to the server.
  • set option "debug http": davfs2 will write all HTTP-request lines and all final response lines into your log facility. You can use the time stamps of these log entries to calculate transfer time.

ls stucks forever:
davfs2 is single threaded and so it will not respond as long it is uploading some file. But nothing should stuck forever. If this really happens then something is going wrong.

Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Tue 31 Jan 2017 09:27:14 AM UTC, original submission:

I need to measure upload speed of our webdav server, So I've mounted a number of davfs2 folders. However I see that if it takes for example 4 seconds to copy 100 files of 1MB to such folder, in reality when I check it on Server side, it may take about 2 minutes. Moreover, when I try to just `ls` on my davfs2 in between (before it actually uploads to server), `ls` stucks forever. Can you probably help with some idea, how to know when actually all files are uploaded?



(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 None (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-01 wbaumann StatusNone => In Progress
        Assigned toNone => wbaumann

    Back to the top

    Powered by Savane 3.3