Issue1145231
Created on 2005-02-21 08:10 by volkersf, last changed 2008-01-05 19:24 by christian.heimes.
|
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:
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',...
|
|
msg24357 - (view) |
Author: Hyeshik Chang (hyeshik.chang) |
Date: 2005-02-21 09:48 |
|
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.
|
|
msg59308 - (view) |
Author: Christian Heimes (christian.heimes) |
Date: 2008-01-05 19:24 |
|
My FreeBSD 6.2 machine has os.statvfs.
|
|
| Date |
User |
Action |
Args |
| 2008-01-05 19:24:18 | christian.heimes | set | status: open -> closed resolution: works for me messages:
+ msg59308 nosy:
+ christian.heimes |
| 2005-02-21 08:10:43 | volkersf | create | |
|