ftp
ftp copied to clipboard
Optimize storage usage on dashboard
trafficstars
Currently, the storage view uses df -l -h -BM to get disk usage of all drives, and then only displays the first.
This leads to uncommon behaviour on servers where many virtual drives are used etc and/or multiple drives are connected.
With commit 936b76a3db5b105ab8b4da9a2560affb9fe0f66d the storage usage of the drive mounted in the root folder will be taken, which is a quick fix, but not optimal. We'll need to find a solution to display the usage of all (real) drives. This could be accomplished by running lsblk and then df with mounted drives.