blob: 6ec7c388064f37ab3ecb2d75e39ee3acfa2eaf07 [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001
2:mod:`statvfs` --- Constants used with :func:`os.statvfs`
3=========================================================
4
5.. module:: statvfs
6 :synopsis: Constants for interpreting the result of os.statvfs().
7.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
8
9
10.. % LaTeX'ed from comments in module
11
12The :mod:`statvfs` module defines constants so interpreting the result if
13:func:`os.statvfs`, which returns a tuple, can be made without remembering
14"magic numbers." Each of the constants defined in this module is the *index* of
15the entry in the tuple returned by :func:`os.statvfs` that contains the
16specified information.
17
18
19.. data:: F_BSIZE
20
21 Preferred file system block size.
22
23
24.. data:: F_FRSIZE
25
26 Fundamental file system block size.
27
28
29.. data:: F_BLOCKS
30
31 Total number of blocks in the filesystem.
32
33
34.. data:: F_BFREE
35
36 Total number of free blocks.
37
38
39.. data:: F_BAVAIL
40
41 Free blocks available to non-super user.
42
43
44.. data:: F_FILES
45
46 Total number of file nodes.
47
48
49.. data:: F_FFREE
50
51 Total number of free file nodes.
52
53
54.. data:: F_FAVAIL
55
56 Free nodes available to non-super user.
57
58
59.. data:: F_FLAG
60
61 Flags. System dependent: see :cfunc:`statvfs` man page.
62
63
64.. data:: F_NAMEMAX
65
66 Maximum file name length.
67