Commit db66a96
fs: expose frsize field in statfs
Expose `f_frsize` from libuv's `uv_statfs_t` as `statfs.frsize`.
Per POSIX, `f_blocks`, `f_bfree`, and `f_bavail` are expressed in
units of `f_frsize`, not `f_bsize`. On most filesystems the two
values are typically equal, but some filesystem drivers report a
different `f_bsize`, making it impossible to compute accurate disk
usage without `frsize`.
Refs: libuv/libuv#4983
PR-URL: #62277
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>1 parent 4ad07de commit db66a96Copy full SHA for db66a96
6 files changed
+19-3Lines changed: 19 additions & 3 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- doc/api
- lib/internal/fs
- src
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+12Lines changed: 12 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7895 | 7895 | |
7896 | 7896 | |
7897 | 7897 | |
| 7898 | + |
7898 | 7899 | |
7899 | 7900 | |
7900 | 7901 | |
| ||
7909 | 7910 | |
7910 | 7911 | |
7911 | 7912 | |
| 7913 | + |
7912 | 7914 | |
7913 | 7915 | |
7914 | 7916 | |
| ||
7965 | 7967 | |
7966 | 7968 | |
7967 | 7969 | |
| 7970 | + |
| 7971 | + |
| 7972 | + |
| 7973 | + |
| 7974 | + |
| 7975 | + |
| 7976 | + |
| 7977 | + |
| 7978 | + |
| 7979 | + |
7968 | 7980 | |
7969 | 7981 | |
7970 | 7982 | |
|
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
571 | 571 | |
572 | 572 | |
573 | 573 | |
574 | | - |
| 574 | + |
575 | 575 | |
576 | 576 | |
| 577 | + |
577 | 578 | |
578 | 579 | |
579 | 580 | |
| ||
584 | 585 | |
585 | 586 | |
586 | 587 | |
587 | | - |
| 588 | + |
588 | 589 | |
589 | 590 | |
590 | 591 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
153 | 153 | |
154 | 154 | |
155 | 155 | |
| 156 | + |
156 | 157 | |
157 | 158 | |
158 | 159 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
| 47 | + |
47 | 48 | |
48 | 49 | |
49 | 50 | |
|
Collapse file
test/parallel/test-fs-promises.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-promises.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
89 | 89 | |
90 | 90 | |
91 | 91 | |
| 92 | + |
92 | 93 | |
93 | 94 | |
94 | 95 | |
|
Collapse file
test/parallel/test-fs-statfs.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-statfs.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | 12 | |
13 | 13 | |
|
0 commit comments