diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 08:13:35 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 14:27:36 -0300 |
| commit | 27837e6345b51ceb2ceaaee58fd593024feb07c8 (patch) | |
| tree | a9d8a92c13333545203b5a17f153b609bb9815df /core/ninep/tree.zig | |
| parent | 5671a8275203334594b6f3b548e6a6012ef9fae6 (diff) | |
| download | pardes-27837e6345b51ceb2ceaaee58fd593024feb07c8.tar.gz pardes-27837e6345b51ceb2ceaaee58fd593024feb07c8.zip | |
ninep: the audit's two more finds ride with the rest: the panes the last look or exec touched (fs.results and each open's) and a column's or the workspace's tag truncation (fs.header_rewrite, header_trunc_pending, header_held) are digested and dumped, dropped at a revive as the opens are; found by reading the namespace field by field (reports/pardes-faults-4.md section 3): exec.leased reads an open's results to keep a done command pane a script reads from being taken again, and a new open's results are the session's last (no test: it needs a finished command pane read by a script); a header's truncation is the pane tag's twin: test "a client joined after a script truncated the workspace's tag writes the tag its session writes" (unequal on the base); the rest of the namespace is no fault (set and read in one request's step, or replies, the log, the listener) but edit_hold (listed: the session's listener sets it between steps); gate on this tip (load 5-18): tui core-test 868/1023 (155 skipped), shell-test 1063/1066, pane-test 183/184, behaviour-test 275/275 and --replay 275/275, term-test 17/17, kitty-test 45/45, addon-test 5/5, process-test 1 of 144 (pty/run's "busy while a job holds the tty", at load 18; 3 of 3 alone), replicas --clients 5, --bytes --clients 5 and both with --seeds 8: diverged 0, unequal 0, unlisted stops 0, corpus 22 of 22, no leak; attach probe 0 of 6; cross_replay 29 digests agree on each replica; daemon.py plain, --far, --games, --window-clients, --upgrade base -> this and this -> base pass; the macOS (Linux host), macOS arm and FreeBSD builds; the frame and perf gate against tree2 PASS: 77/77 frames, gui unit-test 1660/1664, perfab corpus2x +0.009%, perfops 121 within 0.1% (largest client-key-down on medium +0.054%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/ninep/tree.zig')
| -rw-r--r-- | core/ninep/tree.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/ninep/tree.zig b/core/ninep/tree.zig index 107479f6..3eeb5d3f 100644 --- a/core/ninep/tree.zig +++ b/core/ninep/tree.zig @@ -126,8 +126,8 @@ pub const out_reserve = 4 * 1024; pub const Open = struct { /// A client's join carries it and the digest covers it (fs.Namespace), /// but what only its reader is answered with: the listener's held - /// read, the stream's last answer, the panes a look or exec touched. - pub const replica = .{ .authority = .{ "results", "held", "replay" } }; + /// read and the stream's last answer. + pub const replica = .{ .authority = .{ "held", "replay" } }; /// The node it was opened on, which every use checks; 0 is a free record. node: u64 = 0, what: What = .{ .snapshot = null }, @@ -216,6 +216,7 @@ pub const Open = struct { pub const Replay = struct { off: u64, bytes: []u8 }; pub const Results = struct { + pub const replica = .{ .len = .{.{ "list", "len" }} }; list: [pardes.MAX_PANES]u32 = undefined, len: u8 = 0, /// Written on: reads are a stream from the write on, whatever |
