SIGN IN SIGN UP

GH-87804: Fix counter overflow in statvfs on macOS (#99570)

On macOS the statvfs interface returns block counts as
32-bit integers, and that results in bad reporting for
larger disks.

Therefore reimplement statvfs in terms of statfs, which
does use 64-bit integers for block counts.

Tested using a sparse filesystem image of 100TB.
R
Ronald Oussoren committed
6e222a55b1d63de994a2ca39afd4bbf4d2fbdd34
Parent: e19103a
Committed by GitHub <noreply@github.com> on 2/10/2024, 10:16:45 AM