bugdavfs2 - Bugs: bug #63546, Cache dir bloating


bug #63546: Cache dir bloating

Submitter:  Nikolay Shaplov <nataraj>
Submitted:  Sun 18 Dec 2022 09:48:23 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Fri 28 Apr 2023 02:58:03 PM UTC, comment #1: 

using tmp is a bad decission, as requesting the files takes "long" depending on the file size, or the number of files.
But outdated files should be deleted from the cache.

Sun 18 Dec 2022 09:48:23 PM UTC, original submission:  

I've using davfs2 for couple of years, and was surprised to find out that my /var/cache/davfs2 dir have bloated to 8 Gb.

It seems that if davfs2 terminates unexpectedly (reboot or kill or powerdown) it will never clean cache that have been used.

This should be fixed, I guess.

I have several possible solution to suggest:

- Use /tmp for caching. Then it will be automatically cleaned on reboot (guess it is best solution)

- keep pid in cache data, if davfs2 is started, finds cache for pid N, and there is no such process up and running, clear that cache. (A bit dangerous to my taste)

- clear cache that is old. Older that N days, or may be older then uptime...

May be use some combination of it, or find some other solution...

Nikolay Shaplov <nataraj>


(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 nataraj (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.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code