helpdavfs2 - Support: sr #109709, How to force cancelling of current...


sr #109709: How to force cancelling of current cache sync?

Submitted by:  James James <jamesjames>
Submitted on:  Wed 19 Jun 2019 12:53:48 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Open/Closed:  Open Operating System:  None

Add a New Comment (Rich Markup)

You are not logged in

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


Fri 28 Jun 2019 02:21:20 PM UTC, comment #3: 

It is easiest to interrupt the network connection of the full system. But if this is not feasable you can use Linux's paket filter (netfilter, iptables) to just interrupt the connection to the WebDAV-server. Please see the manuals of these tools if you need. But just removing the plug of the network cable is easier.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Thu 27 Jun 2019 06:14:40 PM UTC, comment #2: 

Hey Werner, thanks for the reply.

> Now interrupt the network connection

How do I interrupt the network connection for davfs2? Or do you mean interrupt the network connection of the full system?!

James James <jamesjames>
Wed 26 Jun 2019 02:25:24 PM UTC, comment #1: 

Because davfs2 is single threaded it will not respond to commands as long as it is uploading the file. Even signal SIGHUP will not help. SIGKILL will stop the process but will leave the file system in an inconsistent state.

Recommended way:

  • First issue a command to remove the file from the davfs2 file system (not from the cache). This command will hang as long davfs2 is upoading.
  • Now interrupt the network connection. After some time the upload process will time out, the function will return and now the remove command will succeed.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Wed 19 Jun 2019 12:53:48 AM UTC, original submission:  

When I (accidentally) copy a large file to the davfs2-mounted folder, the copy process is done quite fast. I understand, this is because the file is copied to the cache `/var/cache/davfs2`, first? However, the sync would take hours with my current internet connection so I would like to cancel the sync.

What's the best way to do this?

`sudo rm -rf /var/cache/davfs2/*` has no effect (because I guess the files are already opened by the process, so sync can continue?)

`sudo umount` doesn't respond. Option `-f` doesn't help, either.

Thanks for any advice! :)

James James <jamesjames>


(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 jamesjames (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
    2019-06-26 wbaumann StatusNone => Done
        Assigned toNone => wbaumann

    Back to the top

    Powered by Savane 3.5