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

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/710632b45cd7a7081af82af418eb3e405f7aa35e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 710632b45cd7a7081af82af418eb3e405f7aa35e

Requested commit: 710632b45cd7a7081af82af418eb3e405f7aa35e

Commit: 710632b45cd7a7081af82af418eb3e405f7aa35e

Tree: 00eb10fdf4662357e7ee57773932e36cb74d68d3

Author: Pat Tullmann

Committer: Alex Rønne Petersen

## Message

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

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

```

## Parents

- [640a130651ee39f8d8f5afc9498574c10af18ba9](https://git.cafe/gitcafe/zig/commit/640a130651ee39f8d8f5afc9498574c10af18ba9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/710632b45cd7a7081af82af418eb3e405f7aa35e?format=markdown)
