-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs: add statfs to fs #31351
fs: add statfs to fs #31351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, nice work!
This looks good with the spare
field(s) removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM but as mentioned, all references to the spare fields can be dropped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with all of the spares
removed.
@SheikhSajid I only meant to alphabetize the documentation headers/entries, not the order of properties in the object output in the console. Sorry that I wasn't clear about that! In other words: ### foo should appear after: ### bar but this is OK, and should be retained if it's what the order of the actual output will be: ```console
{
foo: 'first',
bar: 'second'
}
``` |
Fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry to report that the test for this new feature fails on Windows in our CI:
13:24:34 not ok 190 parallel/test-fs-statfs
13:24:34 ---
13:24:34 duration_ms: 0.198
13:24:34 severity: fail
13:24:34 exitcode: 1
13:24:34 stack: |-
13:24:34 internal/fs/utils.js:259
13:24:34 throw err;
13:24:34 ^
13:24:34
13:24:34 Error: ENOENT: no such file or directory, statfs 'C:\workspace\node-test-binary-windows-js-suites\node\test\parallel\test-fs-statfs.js'
13:24:34 at Object.statfsSync (fs.js:976:3)
13:24:34 at Object.<anonymous> (C:\workspace\node-test-binary-windows-js-suites\node\test\parallel\test-fs-statfs.js:39:24)
13:24:34 at Module._compile (internal/modules/cjs/loader.js:1208:30)
13:24:34 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1228:10)
13:24:34 at Module.load (internal/modules/cjs/loader.js:1057:32)
13:24:34 at Function.Module._load (internal/modules/cjs/loader.js:952:14)
13:24:34 at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
13:24:34 at internal/main/run_main_module.js:17:47 {
13:24:34 errno: -4058,
13:24:34 syscall: 'statfs',
13:24:34 code: 'ENOENT',
13:24:34 path: 'C:\\workspace\\node-test-binary-windows-js-suites\\node\\test\\parallel\\test-fs-statfs.js'
13:24:34 }
13:24:34 ...
Ping @SheikhSajid |
Seems like a libuv issue on Windows. I compiled libuv on Windows and uv_fs_statfs is returning errors whenever a path to a file is passed to it. Folders work fine. |
I will try to look into why this is happening. |
Add support for statfs system call to the fs module using uv_fs_statfs() function from libuv. Refs: nodejs#10745
8ae28ff
to
2935f72
Compare
@SheikhSajid ... looks like this has stalled out and needs a rebase. Do you intend on moving this forward? |
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
Closing this because it has stalled. Feel free to reopen if this PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions. |
it looks like everything is ready, should anyone make this happen will be super. |
This commit adds statfs() and statfsSync() to the fs module, and statfs() to the fsPromises module. Co-authored-by: cjihrig <[email protected]> Fixes: nodejs#10745 Refs: nodejs#31351
This commit adds statfs() and statfsSync() to the fs module, and statfs() to the fsPromises module. Co-authored-by: cjihrig <[email protected]> Fixes: nodejs#10745 Refs: nodejs#31351
This commit adds statfs() and statfsSync() to the fs module, and statfs() to the fsPromises module. Co-authored-by: cjihrig <[email protected]> Fixes: #10745 Refs: #31351 PR-URL: #46358 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
This commit adds statfs() and statfsSync() to the fs module, and statfs() to the fsPromises module. Co-authored-by: cjihrig <[email protected]> Fixes: #10745 Refs: #31351 PR-URL: #46358 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
This commit adds statfs() and statfsSync() to the fs module, and statfs() to the fsPromises module. Co-authored-by: cjihrig <[email protected]> Fixes: #10745 Refs: #31351 PR-URL: #46358 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
This commit adds statfs() and statfsSync() to the fs module, and statfs() to the fsPromises module. Co-authored-by: cjihrig <[email protected]> Fixes: #10745 Refs: #31351 PR-URL: #46358 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
This commit adds statfs() and statfsSync() to the fs module, and statfs() to the fsPromises module. Co-authored-by: cjihrig <[email protected]> Fixes: #10745 Refs: #31351 PR-URL: #46358 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
Add support for statfs system call to the fs module using
uv_fs_statfs() function from libuv.
Refs: #10745
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes