10.4. statvfs β€” Constants used with os.statvfs()ΒΆ

Deprecated since version 2.6: The statvfs module has been removed in Python 3.

The statvfs module defines constants so interpreting the result if 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 os.statvfs() that contains the specified information.

statvfs.F_BSIZEΒΆ

Preferred file system block size.

statvfs.F_FRSIZEΒΆ

Fundamental file system block size.

statvfs.F_BLOCKSΒΆ

Total number of blocks in the filesystem.

statvfs.F_BFREEΒΆ

Total number of free blocks.

statvfs.F_BAVAILΒΆ

Free blocks available to non-super user.

statvfs.F_FILESΒΆ

Total number of file nodes.

statvfs.F_FFREEΒΆ

Total number of free file nodes.

statvfs.F_FAVAILΒΆ

Free nodes available to non-super user.

statvfs.F_FLAGΒΆ

Flags. System dependent: see statvfs() man page.

statvfs.F_NAMEMAXΒΆ

Maximum file name length.