Skip to content

Fix fs.stat for large file sizes #123

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

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Fix fs.stat for large file sizes #123

merged 2 commits into from
Feb 20, 2025

Conversation

rcooke-warwick
Copy link
Contributor

The the size of an image was > ~4GB (max value that could be stored in a 32-bit integer the stat function threw an error - there was a type mismatch between node and the c function that combined the upper and lower 32 bits of the image size that is stored in the inode.

Change-type: patch

Attempts to fix: balena-os/jetson-flash#194

The the size of an image was > ~4GB (max value that could be stored in a 32-bit integer the stat function threw an error - there was a type mismatch between node and the c function that combined the upper and lower 32 bits of the image size that is stored in the inode.

Change-type: patch
Signed-off-by: Ryan Cooke<ryan@balena.io>
@flowzone-app flowzone-app bot enabled auto-merge February 20, 2025 16:42
Copy link

@acostach acostach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Tested with jetson-flash and a 12GB preloaded image

@flowzone-app flowzone-app bot merged commit e5fe6c6 into master Feb 20, 2025
53 checks passed
@flowzone-app flowzone-app bot deleted the ryan/filesize branch February 20, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error flashing TX2 image with preload, image size limit?
2 participants