Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v9 / html / python / lib / module-statvfs.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="lib.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="lib.html" title='Python Library Reference' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='index' href='genindex.html' title='Index' />
10<link rel='last' href='about.html' title='About this document...' />
11<link rel='help' href='about.html' title='About this document...' />
12<link rel="next" href="module-filecmp.html" />
13<link rel="prev" href="module-statcache.html" />
14<link rel="parent" href="allos.html" />
15<link rel="next" href="module-filecmp.html" />
16<meta name='aesop' content='information' />
17<title>6.6 statvfs -- Constants used with os.statvfs()</title>
18</head>
19<body>
20<DIV CLASS="navigation">
21<div id='top-navigation-panel' xml:id='top-navigation-panel'>
22<table align="center" width="100%" cellpadding="0" cellspacing="2">
23<tr>
24<td class='online-navigation'><a rel="prev" title="6.5 statcache "
25 href="module-statcache.html"><img src='../icons/previous.png'
26 border='0' height='32' alt='Previous Page' width='32' /></A></td>
27<td class='online-navigation'><a rel="parent" title="6. Generic Operating System"
28 href="allos.html"><img src='../icons/up.png'
29 border='0' height='32' alt='Up One Level' width='32' /></A></td>
30<td class='online-navigation'><a rel="next" title="6.7 filecmp "
31 href="module-filecmp.html"><img src='../icons/next.png'
32 border='0' height='32' alt='Next Page' width='32' /></A></td>
33<td align="center" width="100%">Python Library Reference</td>
34<td class='online-navigation'><a rel="contents" title="Table of Contents"
35 href="contents.html"><img src='../icons/contents.png'
36 border='0' height='32' alt='Contents' width='32' /></A></td>
37<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
38 border='0' height='32' alt='Module Index' width='32' /></a></td>
39<td class='online-navigation'><a rel="index" title="Index"
40 href="genindex.html"><img src='../icons/index.png'
41 border='0' height='32' alt='Index' width='32' /></A></td>
42</tr></table>
43<div class='online-navigation'>
44<b class="navlabel">Previous:</b>
45<a class="sectref" rel="prev" href="module-statcache.html">6.5 statcache </A>
46<b class="navlabel">Up:</b>
47<a class="sectref" rel="parent" href="allos.html">6. Generic Operating System</A>
48<b class="navlabel">Next:</b>
49<a class="sectref" rel="next" href="module-filecmp.html">6.7 filecmp </A>
50</div>
51<hr /></div>
52</DIV>
53<!--End of Navigation Panel-->
54
55<H1><A NAME="SECTION008600000000000000000">
566.6 <tt class="module">statvfs</tt> --
57 Constants used with <tt class="function">os.statvfs()</tt></A>
58</H1>
59
60<P>
61<A NAME="module-statvfs"></A>
62
63<P>
64The <tt class="module">statvfs</tt> module defines constants so interpreting the result
65if <tt class="function">os.statvfs()</tt>, which returns a tuple, can be made without
66remembering ``magic numbers.'' Each of the constants defined in this
67module is the <em>index</em> of the entry in the tuple returned by
68<tt class="function">os.statvfs()</tt> that contains the specified information.
69
70<P>
71<dl><dt><b><tt id='l2h-1803' xml:id='l2h-1803'>F_BSIZE</tt></b></dt>
72<dd>
73Preferred file system block size.
74</dd></dl>
75
76<P>
77<dl><dt><b><tt id='l2h-1804' xml:id='l2h-1804'>F_FRSIZE</tt></b></dt>
78<dd>
79Fundamental file system block size.
80</dd></dl>
81
82<P>
83<dl><dt><b><tt id='l2h-1805' xml:id='l2h-1805'>F_BLOCKS</tt></b></dt>
84<dd>
85Total number of blocks in the filesystem.
86</dd></dl>
87
88<P>
89<dl><dt><b><tt id='l2h-1806' xml:id='l2h-1806'>F_BFREE</tt></b></dt>
90<dd>
91Total number of free blocks.
92</dd></dl>
93
94<P>
95<dl><dt><b><tt id='l2h-1807' xml:id='l2h-1807'>F_BAVAIL</tt></b></dt>
96<dd>
97Free blocks available to non-super user.
98</dd></dl>
99
100<P>
101<dl><dt><b><tt id='l2h-1808' xml:id='l2h-1808'>F_FILES</tt></b></dt>
102<dd>
103Total number of file nodes.
104</dd></dl>
105
106<P>
107<dl><dt><b><tt id='l2h-1809' xml:id='l2h-1809'>F_FFREE</tt></b></dt>
108<dd>
109Total number of free file nodes.
110</dd></dl>
111
112<P>
113<dl><dt><b><tt id='l2h-1810' xml:id='l2h-1810'>F_FAVAIL</tt></b></dt>
114<dd>
115Free nodes available to non-super user.
116</dd></dl>
117
118<P>
119<dl><dt><b><tt id='l2h-1811' xml:id='l2h-1811'>F_FLAG</tt></b></dt>
120<dd>
121Flags. System dependent: see <tt class="cfunction">statvfs()</tt> man page.
122</dd></dl>
123
124<P>
125<dl><dt><b><tt id='l2h-1812' xml:id='l2h-1812'>F_NAMEMAX</tt></b></dt>
126<dd>
127Maximum file name length.
128</dd></dl>
129
130<DIV CLASS="navigation">
131<div class='online-navigation'>
132<p></p><hr />
133<table align="center" width="100%" cellpadding="0" cellspacing="2">
134<tr>
135<td class='online-navigation'><a rel="prev" title="6.5 statcache "
136 href="module-statcache.html"><img src='../icons/previous.png'
137 border='0' height='32' alt='Previous Page' width='32' /></A></td>
138<td class='online-navigation'><a rel="parent" title="6. Generic Operating System"
139 href="allos.html"><img src='../icons/up.png'
140 border='0' height='32' alt='Up One Level' width='32' /></A></td>
141<td class='online-navigation'><a rel="next" title="6.7 filecmp "
142 href="module-filecmp.html"><img src='../icons/next.png'
143 border='0' height='32' alt='Next Page' width='32' /></A></td>
144<td align="center" width="100%">Python Library Reference</td>
145<td class='online-navigation'><a rel="contents" title="Table of Contents"
146 href="contents.html"><img src='../icons/contents.png'
147 border='0' height='32' alt='Contents' width='32' /></A></td>
148<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
149 border='0' height='32' alt='Module Index' width='32' /></a></td>
150<td class='online-navigation'><a rel="index" title="Index"
151 href="genindex.html"><img src='../icons/index.png'
152 border='0' height='32' alt='Index' width='32' /></A></td>
153</tr></table>
154<div class='online-navigation'>
155<b class="navlabel">Previous:</b>
156<a class="sectref" rel="prev" href="module-statcache.html">6.5 statcache </A>
157<b class="navlabel">Up:</b>
158<a class="sectref" rel="parent" href="allos.html">6. Generic Operating System</A>
159<b class="navlabel">Next:</b>
160<a class="sectref" rel="next" href="module-filecmp.html">6.7 filecmp </A>
161</div>
162</div>
163<hr />
164<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
165</DIV>
166<!--End of Navigation Panel-->
167<ADDRESS>
168See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
169</ADDRESS>
170</BODY>
171</HTML>