Commit 40ccfde
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 ad9a290 commit 40ccfdeCopy full SHA for 40ccfde
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 |
|---|---|---|
| ||
7615 | 7615 | |
7616 | 7616 | |
7617 | 7617 | |
| 7618 | + |
7618 | 7619 | |
7619 | 7620 | |
7620 | 7621 | |
| ||
7629 | 7630 | |
7630 | 7631 | |
7631 | 7632 | |
| 7633 | + |
7632 | 7634 | |
7633 | 7635 | |
7634 | 7636 | |
| ||
7685 | 7687 | |
7686 | 7688 | |
7687 | 7689 | |
| 7690 | + |
| 7691 | + |
| 7692 | + |
| 7693 | + |
| 7694 | + |
| 7695 | + |
| 7696 | + |
| 7697 | + |
| 7698 | + |
| 7699 | + |
7688 | 7700 | |
7689 | 7701 | |
7690 | 7702 | |
|
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