[issue43638] MacOS os.statvfs() has rollover for >4TB disks at each 4TB (32bit counter overflow?)

Sander report at bugs.python.org
Mon Mar 29 04:41:43 EDT 2021


Sander <sander.jonkers+github at gmail.com> added the comment:

OK. What would be a solution from/for Python to get the correct available space on a MacOS system?

In SABnzbd we implemented a workaround with a direct call to MacOS C lib's statfs(). See https://github.com/sabnzbd/sabnzbd/blob/develop/sabnzbd/filesystem.py#L948-L989

IMHO not a great solution for a python programmer. Could python's os.statvfs() use the correct (64bit) info from statfs()?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43638>
_______________________________________


More information about the Python-bugs-list mailing list