Available / used GBytes wrong in WebDAV davfs drive

  • I've mounted a WebDAV cloud drive (storage / remotemount / davfs) to dump my borg repo and NVR files there. Works fine.

    From the beginning the available / used GBytes shown in storage > file systems are stuck to "508.63 GiB / 762.93 GiB" (total 1 TiB).

    These values have not changed for weeks, while the drive has now approx. 200 GB free, 824 GB used.

    Code
    df | grep remote
    https://webdav.smartdrive.web.de  1333333332  800000000  533333332   61% /srv/remotemount/web_cloud

    Probably it's the providers fault; "rclone about" has no output.

    du works fine.

    As workaround I run a script every hour calculating the values by myself to get a warning when the available free space drops too low.

    I'd really like to "overwrite" the wrong values with my calculated ones esp. in the dashboard widget.

    Any ideas?

    • Official Post

    I'd really like to "overwrite" the wrong values with my calculated ones esp. in the dashboard widget.

    Any ideas?

    The widget uses the output in df in realtime. You would have to override getStatistics function from https://github.com/OpenMediaVa…ilesystem/remote.inc#L261 in the davfs backend https://github.com/OpenMediaVa…esystem/backend/davfs.inc to run your script. It might be too slow and time out though.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.7 | compose 7.6.9 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!