Extend the perl code of the index.cgi to proper calculate the free disk space in case the root filesystem is BTRFS. The current used "df" does not proper work with BTRFS. Here "btrfs filesystem df <path>" needs to be called and parsed.
I actually wouldn't mind if we would entire rewrite this. Calling df does not seem to be a good solution. There is also a long list of things we filter out. It doesn't seem to be clean and it is very slow code.
Hello Michael, I've cleaned up the corresponding code a bit and hopefully it is faster now. https://git.ipfire.org/?p=people/stevee/ipfire-2.x.git;a=commit;h=5727a67ded49305ed931312526a192cbb05284a5
The code has been extended to proper deal with BTRFS volumes: https://git.ipfire.org/?p=people/stevee/ipfire-2.x.git;a=commit;h=493a03e2b69746d6ea86d4bafdf72c57e7c5d89d