Commit b6e52e6
committed
Fix file count with statfs
The 'f_files' member was incorrectly set to the count of inodes in use.
It should be set to the maximum number of files that the file system can
support. This incorrect calculation leads to unexpected behavior in
programs that use statfs(2), such as 'df'. These programs may print
negative values for the inodes used field, which is counterintuitive.1 parent 0828258 commit b6e52e6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments