[ python-Bugs-1145231 ] No os.statvfs on FreeBSD

SourceForge.net noreply at sourceforge.net
Mon Feb 21 10:48:29 CET 2005


Bugs item #1145231, was opened at 2005-02-21 17:10
Message generated for change (Comment added) made by perky
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1145231&group_id=5470

Category: Python Library
>Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Volker Stolz (volkersf)
>Assigned to: Hye-Shik Chang (perky)
Summary: No os.statvfs on FreeBSD

Initial Comment:
There's no statvfs-wrapper on FreeBSD because it doesn't have 
statvfs(). But there's statfs() which might be sufficient:
http://www.freebsd.org/cgi/man.cgi?
query=statfs&apropos=0&sektion=0&manpath=FreeBSD+5.3-
RELEASE+and+Ports&format=html

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', 
'strerror',...

----------------------------------------------------------------------

>Comment By: Hye-Shik Chang (perky)
Date: 2005-02-21 18:48

Message:
Logged In: YES 
user_id=55188

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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1145231&group_id=5470


More information about the Python-bugs-list mailing list