summaryrefslogtreecommitdiff
path: root/Doc/library/statvfs.rst
blob: 6ec7c388064f37ab3ecb2d75e39ee3acfa2eaf07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

:mod:`statvfs` --- Constants used with :func:`os.statvfs`
=========================================================

.. module:: statvfs
   :synopsis: Constants for interpreting the result of os.statvfs().
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>


.. % LaTeX'ed from comments in module

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

   Flags. System dependent: see :cfunc:`statvfs` man page.


.. data:: F_NAMEMAX

   Maximum file name length.