Skip to content

lib/std/fs/test.zig: Some filesystems support 8 EiB files #24254

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 1 commit into from
Jun 23, 2025

Conversation

rootbeer
Copy link
Contributor

Btrfs at least supports 16 EiB files (limited in practice to 8EiB by the Linux VFS code which uses signed 64-bit offsets). So fix the fs.zig test case to expect either a FileTooBig or success from truncating a file to 8EiB. And test that beyond that size the offset is interpreted as a negative number.

Fixes #24242

Btrfs at least supports 16 EiB files (limited in practice to 8EiB by the
Linux VFS code which uses signed 64-bit offsets).  So fix the fs.zig test
case to expect either a FileTooBig or success from truncating a file to
8EiB.  And test that beyond that size the offset is interpreted as a
negative number.

Fixes ziglang#24242
@alexrp alexrp enabled auto-merge (rebase) June 23, 2025 08:50
@alexrp alexrp merged commit 710632b into ziglang:master Jun 23, 2025
10 checks passed
@rootbeer rootbeer deleted the verybigfs branch June 23, 2025 17:03
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.

fs.test.test.setEndPos fails with expected error.FileTooBig, found void
3 participants