Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No os.statvfs on FreeBSD #41610

Closed
volkersf mannequin opened this issue Feb 21, 2005 · 3 comments
Closed

No os.statvfs on FreeBSD #41610

volkersf mannequin opened this issue Feb 21, 2005 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@volkersf
Copy link
Mannequin

volkersf mannequin commented Feb 21, 2005

BPO 1145231
Nosy @hyeshik, @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/hyeshik'
closed_at = <Date 2008-01-05.19:24:18.771>
created_at = <Date 2005-02-21.08:10:43.000>
labels = ['library']
title = 'No os.statvfs on FreeBSD'
updated_at = <Date 2008-01-05.19:24:18.769>
user = 'https://bugs.python.org/volkersf'

bugs.python.org fields:

activity = <Date 2008-01-05.19:24:18.769>
actor = 'christian.heimes'
assignee = 'hyeshik.chang'
closed = True
closed_date = <Date 2008-01-05.19:24:18.771>
closer = 'christian.heimes'
components = ['Library (Lib)']
creation = <Date 2005-02-21.08:10:43.000>
creator = 'volkersf'
dependencies = []
files = []
hgrepos = []
issue_num = 1145231
keywords = []
message_count = 3.0
messages = ['24356', '24357', '59308']
nosy_count = 3.0
nosy_names = ['hyeshik.chang', 'volkersf', 'christian.heimes']
pr_nums = []
priority = 'normal'
resolution = 'works for me'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1145231'
versions = []

@volkersf
Copy link
Mannequin Author

volkersf mannequin commented Feb 21, 2005

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

@volkersf volkersf mannequin assigned hyeshik Feb 21, 2005
@volkersf volkersf mannequin added the stdlib Python modules in the Lib dir label Feb 21, 2005
@volkersf volkersf mannequin assigned hyeshik Feb 21, 2005
@volkersf volkersf mannequin added the stdlib Python modules in the Lib dir label Feb 21, 2005
@hyeshik
Copy link
Contributor

hyeshik commented Feb 21, 2005

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.

@tiran
Copy link
Member

tiran commented Jan 5, 2008

My FreeBSD 6.2 machine has os.statvfs.

@tiran tiran closed this as completed Jan 5, 2008
@tiran tiran closed this as completed Jan 5, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants