Commit fc0b361
fs: don't limit ftruncate() length to 32 bits
The length used by ftruncate() is 64 bits in the binding layer.
This commit removes the 32 bit restriction in the JS layer.
Backport-PR-URL: #21171
PR-URL: #20851
Fixes: #20844
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Backport-PR-URL: #21171
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>1 parent 469baa0 commit fc0b361Copy full SHA for fc0b361
File tree
Expand file treeCollapse file tree
3 files changed
+5
-13
lines changedOpen diff view settings
Filter options
- lib
- internal/fs
- test/parallel
Expand file treeCollapse file tree
3 files changed
+5
-13
lines changedOpen diff view settings
Collapse file
+2-7Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
86 | 86 | |
87 | 87 | |
88 | 88 | |
89 | | - |
90 | 89 | |
91 | 90 | |
92 | 91 | |
| ||
788 | 787 | |
789 | 788 | |
790 | 789 | |
791 | | - |
792 | | - |
793 | | - |
794 | | - |
795 | | - |
| 790 | + |
796 | 791 | |
797 | 792 | |
798 | 793 | |
| ||
801 | 796 | |
802 | 797 | |
803 | 798 | |
804 | | - |
| 799 | + |
805 | 800 | |
806 | 801 | |
807 | 802 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
36 | | - |
| 36 | + |
37 | 37 | |
38 | 38 | |
39 | 39 | |
| ||
264 | 264 | |
265 | 265 | |
266 | 266 | |
267 | | - |
| 267 | + |
268 | 268 | |
269 | 269 | |
270 | 270 | |
|
Collapse file
test/parallel/test-fs-truncate.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-truncate.js+1-4Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
220 | 220 | |
221 | 221 | |
222 | 222 | |
223 | | - |
224 | 223 | |
225 | | - |
226 | | - |
227 | 224 | |
228 | 225 | |
229 | 226 | |
230 | 227 | |
231 | 228 | |
232 | 229 | |
233 | | - |
| 230 | + |
234 | 231 | |
235 | 232 | |
236 | 233 | |
|
0 commit comments