This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: No os.statvfs on FreeBSD
Type: Stage:
Components: Library (Lib) Versions:
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: hyeshik.chang Nosy List: christian.heimes, hyeshik.chang, volkersf
Priority: normal Keywords:

Created on 2005-02-21 08:10 by volkersf, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg24356 - (view) Author: Volker Stolz (volkersf) Date: 2005-02-21 08:10
There's no statvfs-wrapper on FreeBSD because it doesn't have 
statvfs(). But there's statfs() which might be sufficient:

Python 2.4 (#2, Jan  4 2005, 04:22:40)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> dir (os)
...'spawnvpe', 'stat', 'stat_float_times', 'stat_result', 'statvfs_result', 
msg24357 - (view) Author: Hyeshik Chang (hyeshik.chang) * (Python committer) Date: 2005-02-21 09:48
Logged In: YES 

FreeBSD has statvfs(3) since FreeBSD 5.0.
Looking at FreeBSD's statvfs implementation (which
is a wrapper function for statfs system call), statfs
has little bit different structure than statvfs and
it may need some translation routine.

FreeBSD 4 is on the way to being a legacy platform,
and you can still use py-freebsd to utilize statfs(2)
on FreeBSD 4 and older.  So I'm sorry but I don't
feel that adding some ifdef blocks is worthy enough.
msg59308 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-05 19:24
My FreeBSD 6.2 machine has os.statvfs.
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41610
2008-01-05 19:24:18christian.heimessetstatus: open -> closed
resolution: works for me
messages: + msg59308
nosy: + christian.heimes
2005-02-21 08:10:43volkersfcreate