annotate Lib/statvfs.py @ 58925:eecf1bef052d 2.6

Merged revisions 78207 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78207 | ezio.melotti | 2010-02-17 01:26:09 +0200 (Wed, 17 Feb 2010) | 1 line #7930: fix stripid ........
author Ezio Melotti <ezio.melotti@gmail.com>
date Tue, 16 Feb 2010 23:29:44 +0000
parents 593b649904b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11707
6f4146846337 The third and final doc-string sweep by Ka-Ping Yee.
Guido van Rossum <guido@python.org>
parents: 10135
diff changeset
1 """Constants for interpreting the results of os.statvfs() and os.fstatvfs()."""
47075
593b649904b8 Deprecated statvfs for removal in 3.0.
Brett Cannon <bcannon@gmail.com>
parents: 16657
diff changeset
2 from warnings import warnpy3k
593b649904b8 Deprecated statvfs for removal in 3.0.
Brett Cannon <bcannon@gmail.com>
parents: 16657
diff changeset
3 warnpy3k("the statvfs module has been removed in Python 3.0", stacklevel=2)
593b649904b8 Deprecated statvfs for removal in 3.0.
Brett Cannon <bcannon@gmail.com>
parents: 16657
diff changeset
4 del warnpy3k
9792
fe701969bc2c Constants for [f]statvfs() (new in posixmodule.c) by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
diff changeset
5
9833
e5cb157ff093 Added some more comments.
Guido van Rossum <guido@python.org>
parents: 9792
diff changeset
6 # Indices for statvfs struct members in the tuple returned by
e5cb157ff093 Added some more comments.
Guido van Rossum <guido@python.org>
parents: 9792
diff changeset
7 # os.statvfs() and os.fstatvfs().
9792
fe701969bc2c Constants for [f]statvfs() (new in posixmodule.c) by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
diff changeset
8
15872
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
9 F_BSIZE = 0 # Preferred file system block size
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
10 F_FRSIZE = 1 # Fundamental file system block size
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
11 F_BLOCKS = 2 # Total number of file system blocks (FRSIZE)
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
12 F_BFREE = 3 # Total number of free blocks
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
13 F_BAVAIL = 4 # Free blocks available to non-superuser
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
14 F_FILES = 5 # Total number of file nodes
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
15 F_FFREE = 6 # Total number of free file nodes
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
16 F_FAVAIL = 7 # Free nodes available to non-superuser
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
17 F_FLAG = 8 # Flags (see your local statvfs man page)
3685ef2a55a4 Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents: 11707
diff changeset
18 F_NAMEMAX = 9 # Maximum file name length