René's URL Explorer Experiment


Title: Missing fields in fs struct results in downstream incorrect storage calculation · Issue #4983 · libuv/libuv · GitHub

Open Graph Title: Missing fields in fs struct results in downstream incorrect storage calculation · Issue #4983 · libuv/libuv

X Title: Missing fields in fs struct results in downstream incorrect storage calculation · Issue #4983 · libuv/libuv

Description: Per POSIX (ref), f_blocks, f_bfree, and f_bavail are defined as being "in units of f_frsize", not f_bsize. Currently uv_statfs_t only exposes f_bsize, causing consumers to calculate incorrect disk space on filesystems whe...

Open Graph Description: Per POSIX (ref), f_blocks, f_bfree, and f_bavail are defined as being "in units of f_frsize", not f_bsize. Currently uv_statfs_t only exposes f_bsize, causing consumers to calculate...

X Description: Per POSIX <sys/statvfs.h> (ref), f_blocks, f_bfree, and f_bavail are defined as being "in units of f_frsize", not f_bsize. Currently uv_statfs_t only exposes f_bsize, causing consum...

Opengraph URL: https://github.com/libuv/libuv/issues/4983

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing fields in fs struct results in downstream incorrect storage calculation","articleBody":"Per POSIX \u003csys/statvfs.h> ([ref](https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/statvfs.h.html)), f_blocks, f_bfree, and f_bavail are defined as being \"in units of f_frsize\", not f_bsize. \n\nCurrently uv_statfs_t only exposes f_bsize, causing consumers to calculate incorrect disk space on filesystems where these values differ (macOS APFS, ZFS, CephFS, Docker Desktop virtiofs). \n\nI noticed this issue while debugging  [immich#4318](https://github.com/immich-app/immich/issues/4318). Immich [uses bsize](https://github.com/immich-app/immich/blob/3321c1a9dfa8f483cbb011cdb5617a3b0b61d239/server/src/repositories/storage.repository.ts#L173-L180) to calculate total, free and available disk space:\n\n```typescript\n  async checkDiskUsage(folder: string): Promise\u003cDiskUsage> {\n    const stats = await fs.statfs(folder);\n    return {\n      available: stats.bavail * stats.bsize,\n      free: stats.bfree * stats.bsize,\n      total: stats.blocks * stats.bsize,\n    };\n  }\n```\n\nThis confusion between bsize and frsize has caused bugs in multiple projects including [borgbackup#4289](https://github.com/borgbackup/borg/issues/4289), [cockroachdb#61182](https://github.com/cockroachdb/cockroach/issues/61182), and the fix is [straightforward](https://github.com/borgbackup/borg/commit/2db84eada026e95575591cb27fe682af6a7986d9). But it is not possible to fix on node without the right field being exposed.\n\n","author":{"url":"https://github.com/ezequielp","@type":"Person","name":"ezequielp"},"datePublished":"2026-01-01T17:40:33Z","url":"https://github.com/libuv/libuv/issues/4983"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:52a382f0-b30b-b67a-de3b-423f28ceeb5c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD4E2:36C426:1AE15D:2593EA:6AEDAC07
html-safe-nonce8b11c9b9ef2b20328d163a9758c872259513b6294e1fb8361fc2a41ed135ea3f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEUyOjM2QzQyNjoxQUUxNUQ6MjU5M0VBOjZBRURBQzA3IiwidmlzaXRvcl9pZCI6IjczMTU2MTEyMzAwNjU3NjUzODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2027cf6e8f7285dc52b9b712a14a0a57bcd2f72e2a79de2eb8fba6e80087f6c7
hovercard-subject-tagissue:3774952639
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libuv/libuv/4983/issue_layout
twitter:imagehttps://opengraph.githubassets.com/df39e52c2d56593203b2c1090d5ad87886e694f495c12dc7010b87fb76a51d72/libuv/libuv/issues/4983
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/df39e52c2d56593203b2c1090d5ad87886e694f495c12dc7010b87fb76a51d72/libuv/libuv/issues/4983
og:image:altPer POSIX (ref), f_blocks, f_bfree, and f_bavail are defined as being "in units of f_frsize", not f_bsize. Currently uv_statfs_t only exposes f_bsize, causing consumers to calculate...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameezequielp
hostnamegithub.com
expected-hostnamegithub.com
None9f51e3b6c7a190e426e641ae15acbc58dd1ac2003e96b58879bbc298e213dbf3
turbo-cache-controlno-preview
go-importgithub.com/libuv/libuv git https://github.com/libuv/libuv.git
octolytics-dimension-user_id4030929
octolytics-dimension-user_loginlibuv
octolytics-dimension-repository_id14812739
octolytics-dimension-repository_nwolibuv/libuv
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14812739
octolytics-dimension-repository_network_root_nwolibuv/libuv
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7060660810b587033ea861b8aa67beb72c8e6542
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/libuv/libuv/issues/4983#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibuv%2Flibuv%2Fissues%2F4983
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibuv%2Flibuv%2Fissues%2F4983
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=libuv%2Flibuv
Reloadhttps://github.com/libuv/libuv/issues/4983
Reloadhttps://github.com/libuv/libuv/issues/4983
Reloadhttps://github.com/libuv/libuv/issues/4983
libuvhttps://github.com/libuv
libuvhttps://github.com/libuv/libuv
Codehttps://github.com/libuv/libuv
Issues143 (143)https://github.com/libuv/libuv/issues
Pull requests123 (123)https://github.com/libuv/libuv/pulls
Discussionshttps://github.com/libuv/libuv/discussions
Actionshttps://github.com/libuv/libuv/actions
Security and quality1 (1)https://github.com/libuv/libuv/security
Insightshttps://github.com/libuv/libuv/pulse
https://github.com/libuv/libuv
New issuehttps://github.com/login?return_to=https://github.com/libuv/libuv/issues/4983
New issuehttps://github.com/login?return_to=https://github.com/libuv/libuv/issues/4983
#4984https://github.com/libuv/libuv/pull/4984
Missing fields in fs struct results in downstream incorrect storage calculationhttps://github.com/libuv/libuv/issues/4983#top
#4984https://github.com/libuv/libuv/pull/4984
https://github.com/ezequielp
ezequielphttps://github.com/ezequielp
on Jan 1, 2026https://github.com/libuv/libuv/issues/4983#issue-3774952639
refhttps://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/statvfs.h.html
immich#4318https://github.com/immich-app/immich/issues/4318
uses bsizehttps://github.com/immich-app/immich/blob/3321c1a9dfa8f483cbb011cdb5617a3b0b61d239/server/src/repositories/storage.repository.ts#L173-L180
borgbackup#4289https://github.com/borgbackup/borg/issues/4289
cockroachdb#61182https://github.com/cockroachdb/cockroach/issues/61182
straightforwardhttps://github.com/borgbackup/borg/commit/2db84eada026e95575591cb27fe682af6a7986d9
bnoordhuishttps://github.com/bnoordhuis
on Jan 1, 2026https://github.com/libuv/libuv/issues/4983#event-21820766910
unix,win: add f_frsize field to uv_statfs_thttps://github.com/bnoordhuis/libuv/commit/31668dc7626f98d8fb2bafa1fafb14c4e2f6bef0
31668dchttps://github.com/bnoordhuis/libuv/commit/31668dc7626f98d8fb2bafa1fafb14c4e2f6bef0
unix,win: add f_frsize field to uv_statfs_t (#4984)https://github.com/libuv/libuv/commit/91ae02a63d25caccddd835fb201195fefe9d113b
#4984https://github.com/libuv/libuv/pull/4984
91ae02ahttps://github.com/libuv/libuv/commit/91ae02a63d25caccddd835fb201195fefe9d113b
bnoordhuishttps://github.com/bnoordhuis
completedhttps://github.com/libuv/libuv/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4984https://github.com/libuv/libuv/pull/4984
on Jan 1, 2026https://github.com/libuv/libuv/issues/4983#event-21821289854
nodejs-github-bothttps://github.com/nodejs-github-bot
on Mar 31, 2026https://github.com/libuv/libuv/issues/4983#event-24089063413
fs: expose frsize field in statfshttps://github.com/nodejs/node/commit/f8ee196c15784c372f30bfbb7d70956fc4d7eb63
f8ee196https://github.com/nodejs/node/commit/f8ee196c15784c372f30bfbb7d70956fc4d7eb63
aduh95https://github.com/aduh95
on May 5, 2026https://github.com/libuv/libuv/issues/4983#event-25180375414
fs: expose frsize field in statfshttps://github.com/nodejs/node/commit/db66a963bf7bce4f900103fea87e87ac15a4641b
db66a96https://github.com/nodejs/node/commit/db66a963bf7bce4f900103fea87e87ac15a4641b
fs: expose frsize field in statfshttps://github.com/nodejs/node/commit/40ccfdecf94b3573c9cf9ae3bb771f0e472a7cf0
40ccfdehttps://github.com/nodejs/node/commit/40ccfdecf94b3573c9cf9ae3bb771f0e472a7cf0
ryaaaaaan96https://github.com/ryaaaaaan96
on Jun 9, 2026https://github.com/libuv/libuv/issues/4983#event-26499497361
Squashed commit of the following:https://github.com/Aclass-third-party/libuv/commit/6df489e4956d4b7c41be7e2c6c4ef7c5c14fe3af
6df489ehttps://github.com/Aclass-third-party/libuv/commit/6df489e4956d4b7c41be7e2c6c4ef7c5c14fe3af
Sign up for freehttps://github.com/signup?return_to=https://github.com/libuv/libuv/issues/4983
Sign in to commenthttps://github.com/login?return_to=https://github.com/libuv/libuv/issues/4983
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.