cpython/Doc/library/statvfs.rst

71 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2007-08-15 11:28:01 -03:00
:mod:`statvfs` --- Constants used with :func:`os.statvfs`
=========================================================
.. module:: statvfs
:synopsis: Constants for interpreting the result of os.statvfs().
2008-05-15 21:50:02 -03:00
:deprecated:
2009-01-03 16:55:06 -04:00
2008-05-15 21:50:02 -03:00
.. deprecated:: 2.6
The :mod:`statvfs` module has been deprecated for removal in Python 3.0.
2007-08-15 11:28:01 -03:00
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
The :mod:`statvfs` module defines constants so interpreting the result if
:func:`os.statvfs`, which returns a tuple, can be made without remembering
"magic numbers." Each of the constants defined in this module is the *index* of
the entry in the tuple returned by :func:`os.statvfs` that contains the
specified information.
.. data:: F_BSIZE
Preferred file system block size.
.. data:: F_FRSIZE
Fundamental file system block size.
.. data:: F_BLOCKS
Total number of blocks in the filesystem.
.. data:: F_BFREE
Total number of free blocks.
.. data:: F_BAVAIL
Free blocks available to non-super user.
.. data:: F_FILES
Total number of file nodes.
.. data:: F_FFREE
Total number of free file nodes.
.. data:: F_FAVAIL
Free nodes available to non-super user.
.. data:: F_FLAG
2012-01-14 11:42:02 -04:00
Flags. System dependent: see :c:func:`statvfs` man page.
2007-08-15 11:28:01 -03:00
.. data:: F_NAMEMAX
Maximum file name length.