blob: fdf045147d42e8be8f799f5a0a11ff1ea04f236f [file] [log] [blame]
Guido van Rossum2386d731999-01-06 18:54:57 +00001# Module 'statvfs'
2#
3# Defines constants for interpreting statvfs struct as returned
4# by os.statvfs() and os.fstatvfs() (if they exist).
5#
Guido van Rossum0bdbe6c1999-01-10 06:09:13 +00006# Suggested usage: from statvfs import *
7#
Guido van Rossum2386d731999-01-06 18:54:57 +00008
Guido van Rossum0bdbe6c1999-01-10 06:09:13 +00009# Indices for statvfs struct members in the tuple returned by
10# os.statvfs() and os.fstatvfs().
Guido van Rossum2386d731999-01-06 18:54:57 +000011
Guido van Rossum0bdbe6c1999-01-10 06:09:13 +000012F_BSIZE = 0 # Preferred file system block size
13F_FRSIZE = 1 # Fundamental file system block size
14F_BLOCKS = 2 # Total number of file system blocks (FRSIZE)
15F_BFREE = 3 # Total number of free blocks
16F_BAVAIL = 4 # Free blocks available to non-superuser
17F_FILES = 5 # Total number of file nodes
18F_FFREE = 6 # Total number of free file nodes
19F_FAVAIL = 7 # Free nodes available to non-superuser
20F_FSID = 8 # File system ID (meaning is system dependent)
21F_FLAG = 9 # Flags (see your local statvfs man page)
22F_NAMEMAX = 10 # Maximum file name length