/Doc/library/statvfs.rst

http://unladen-swallow.googlecode.com/ · ReStructuredText · 70 lines · 33 code · 37 blank · 0 comment · 0 complexity · 7445eb4d9f3be6e6ba9c586a76010fdd MD5 · raw file

  1. :mod:`statvfs` --- Constants used with :func:`os.statvfs`
  2. =========================================================
  3. .. module:: statvfs
  4. :synopsis: Constants for interpreting the result of os.statvfs().
  5. :deprecated:
  6. .. deprecated:: 2.6
  7. The :mod:`statvfs` module has been deprecated for removal in Python 3.0.
  8. .. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
  9. The :mod:`statvfs` module defines constants so interpreting the result if
  10. :func:`os.statvfs`, which returns a tuple, can be made without remembering
  11. "magic numbers." Each of the constants defined in this module is the *index* of
  12. the entry in the tuple returned by :func:`os.statvfs` that contains the
  13. specified information.
  14. .. data:: F_BSIZE
  15. Preferred file system block size.
  16. .. data:: F_FRSIZE
  17. Fundamental file system block size.
  18. .. data:: F_BLOCKS
  19. Total number of blocks in the filesystem.
  20. .. data:: F_BFREE
  21. Total number of free blocks.
  22. .. data:: F_BAVAIL
  23. Free blocks available to non-super user.
  24. .. data:: F_FILES
  25. Total number of file nodes.
  26. .. data:: F_FFREE
  27. Total number of free file nodes.
  28. .. data:: F_FAVAIL
  29. Free nodes available to non-super user.
  30. .. data:: F_FLAG
  31. Flags. System dependent: see :cfunc:`statvfs` man page.
  32. .. data:: F_NAMEMAX
  33. Maximum file name length.