diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-30 22:50:41 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-30 22:50:50 -0300 |
| commit | a03d1649108510cda5951e918e561d7cae43d6b0 (patch) | |
| tree | a2def9245daf72b23798e983258a614460f5cf11 /src/Fsys.zig | |
| parent | 705be665742fa0332585a4321640b5e2245610cb (diff) | |
| download | cloud9-a03d1649108510cda5951e918e561d7cae43d6b0.tar.gz cloud9-a03d1649108510cda5951e918e561d7cae43d6b0.zip | |
9ns: a file whose stat length is 0 opens direct and nonseekable, so a splice or a cached size never ends a stream early
A server's stream (pardes's log) or generated view stats 0: its length
is no length. Opened with the page cache or a kernel file offset of its
own, a splicing reader (coreutils cat into a pipe) could read it from
the wrong offset and take the size as its end. Such a file is now
opened FOPEN_DIRECT_IO | FOPEN_NONSEEKABLE whatever --no-direct-io says;
every other file keeps the option's flags.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/Fsys.zig')
0 files changed, 0 insertions, 0 deletions
