ftp icon indicating copy to clipboard operation
ftp copied to clipboard

Optimize storage usage on dashboard

Open tobimori opened this issue 5 years ago • 1 comments
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.

tobimori avatar Apr 23 '20 10:04 tobimori

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.

tobimori avatar Apr 23 '20 11:04 tobimori