[ENG-765] Reported Total capacity and Free space are wrong (#1066)

* Attempt at fixing stats

* Fix macOS disk stats retrieve logic
 - Ignore mounted dmgs when calculation disk total/free size
 - Only take into account disk mounted by macOS

* macos only import

* Fix Linux

* Replace byte-size with a custom implementation that supports BigInt

* Fix NaN in Statistics

* clippy

* fmt

* Move linux get_volumes to a specilized function
 - Fix ZFS handling
 - Improve handling of disk symlinks and multiple mounts

* Fix macOS
This commit is contained in:
Vítor Vasconcellos
2023-07-05 15:22:56 -03:00
committed by GitHub
parent 7067dcb35c
commit dac54e44d1
25 changed files with 442 additions and 155 deletions

View File

@@ -2,7 +2,7 @@
This container based on alpine 3.17, with the most common build decencies installed, and a built version of [`osxcross`](https://github.com/tpoechtrager/osxcross) plus the macOS SDK 12.3 (Monterey) targeting a minimum compatibility of macOS 10.15 (Catalina) for x86_64 and macOS 11.0 (BigSur) for arm64.
__Image Tag__: macOS SDK version + osxcross commit hash + revision
**Image Tag**: macOS SDK version + osxcross commit hash + revision
This container is currently available at:
https://hub.docker.com/r/vvasconcellos/osxcross.