[Patches] [ python-Patches-444750 ] os.statvfs support for BSD
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 09 Aug 2001 11:22:47 -0700
Patches item #444750, was opened at 2001-07-26 04:20
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=444750&group_id=5470
Category: library
Group: None
Status: Open
Resolution: None
>Priority: 3
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.statvfs support for BSD
Initial Comment:
BSD systems have the statfs(2) call; we use that one to fake statvfs(). See the code for more comments.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2001-07-28 02:10
Message:
Logged In: YES
user_id=21627
I think fstatfs cannot be used to emulate statvfs, since
it expects a file descriptor, not a path. It would be very
confusing if the function is there on some system but does
not expect a path.
In general, I feel that this emulation is not appropriate.
posix exposes system calls as-is, so it should add statfs
and fstatfs calls, instead of trying to emulate statvfs.
It might then be useful to put a function into os to
portably access pieces of information, e.g. free disk
space.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-07-26 04:26
Message:
Logged In: NO
Oops, in case there are questions left, here's my email address:
tg@FreeBSD.org.
tg
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=444750&group_id=5470