Title: Missing documentation in `fs.StatFs` · Issue #50749 · nodejs/node · GitHub
Open Graph Title: Missing documentation in `fs.StatFs` · Issue #50749 · nodejs/node
X Title: Missing documentation in `fs.StatFs` · Issue #50749 · nodejs/node
Description: Affected URL(s) https://nodejs.org/api/fs.html#class-fsstatfs Description of the problem statfs.bsize fails to mention if the size is reported in bits or bytes While statfs.bavail and statfs.bfree can be used to calculate available and f...
Open Graph Description: Affected URL(s) https://nodejs.org/api/fs.html#class-fsstatfs Description of the problem statfs.bsize fails to mention if the size is reported in bits or bytes While statfs.bavail and statfs.bfree ...
X Description: Affected URL(s) https://nodejs.org/api/fs.html#class-fsstatfs Description of the problem statfs.bsize fails to mention if the size is reported in bits or bytes While statfs.bavail and statfs.bfree ...
Opengraph URL: https://github.com/nodejs/node/issues/50749
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing documentation in `fs.StatFs`","articleBody":"### Affected URL(s)\n\nhttps://nodejs.org/api/fs.html#class-fsstatfs\n\n### Description of the problem\n\n* `statfs.bsize` fails to mention if the size is reported in bits or bytes\r\n* While `statfs.bavail` and `statfs.bfree` can be used to calculate available and free space, it would be appropriate to put an example on how to use them\r\n Example:\r\n ```ts\r\n import { statfs } from \"fs/promises\"\r\n const statsfs = await statfs(\"/tmp\")\r\n const available_bits_or_bytes_not_documented = statsfs.bsize * statsfs.bavail\r\n ```\r\n* Similarly, `statfs.blocks` and `statfs.files` would strongly benefit from an example\r\n* What's `statfs.type` and why is it a number?","author":{"url":"https://github.com/NatoBoram","@type":"Person","name":"NatoBoram"},"datePublished":"2023-11-15T18:07:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/50749/node/issues/50749"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4cfb492e-6706-780d-ea42-aadcf36f7074 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2AA:FBCC6:60A0DB:82B8C9:6A4D3FA6 |
| html-safe-nonce | d07a3a2e4d3d872d4cceefe6668fd0b8366252c828815e5ca8bf3462bd734a86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkFBOkZCQ0M2OjYwQTBEQjo4MkI4Qzk6NkE0RDNGQTYiLCJ2aXNpdG9yX2lkIjoiODIwMzY3Njc3NzQyMTAyOTI4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b39b809a062717b9a0418ad3b24221dbfe7b82898d46753d0028128d90982ea2 |
| hovercard-subject-tag | issue:1995279661 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/50749/issue_layout |
| twitter:image | https://opengraph.githubassets.com/938086158409d4aa1d0e860da7edfd0d7790d0ef70457bc481f5c36c188379a3/nodejs/node/issues/50749 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/938086158409d4aa1d0e860da7edfd0d7790d0ef70457bc481f5c36c188379a3/nodejs/node/issues/50749 |
| og:image:alt | Affected URL(s) https://nodejs.org/api/fs.html#class-fsstatfs Description of the problem statfs.bsize fails to mention if the size is reported in bits or bytes While statfs.bavail and statfs.bfree ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NatoBoram |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width