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

 
 

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

Submitter:  James James <jamesjames>
Submitted:  Wed 19 Jun 2019 12:53:48 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

- <_71007>
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

- <_71007>
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:
   
   
Comment:
   

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 _71007 (Posted a comment)
  • -email is unavailable- added by jamesjames (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-26 _71007 Open/ClosedOpen Closed
    2019-06-26 _71007 StatusNone Done
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code