summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 00:01:29 -0300
committerGabriel Schneider <[email protected]>2026-10-30 00:57:20 -0300
commit79efd33ba0964796d4dc4653b68435755b35f834 (patch)
treee67f93ebba2684671817cb6903f746d1ea1db04f /src/builtins.zig
parentf264dbc4a646da695331fe7401fa013cbb720b6a (diff)
downloadpardes-79efd33ba0964796d4dc4653b68435755b35f834.tar.gz
pardes-79efd33ba0964796d4dc4653b68435755b35f834.zip
9p: a mount keeps its connection and sends each operation's walk, stat, open and first read or write in one flight, a new connection's version and attach before them: an operation through it is one round trip where it was six or seven (a directory, or a file of no stated length, two: 9P's only end is an empty read); a file whose stat gave its length is read ahead, its Treads 14 at a time; reads are timed by their progress, so a large remote file opens at 80 and 207 ms (1.3 MB timed out); a write refused unopened behind a truncating open that parked is sent again after it; Unmount lets the connection go; the CLI, --wait and Handover dial afresh, pipelined; reference.typ says how a session elsewhere mounts through ssh -L
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index 1dc428da..239edeaf 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -806,7 +806,7 @@ pub const Mount = struct {
};
// A mount that cannot be reached is said now, and taken back, not
// found out by the first look through it.
- const reached = pardes.tape.site(.probe, null, @import("9p_io.zig").Client.probe, .{ c.p.gpa, dial });
+ const reached = pardes.tape.site(.probe, null, @import("9p_io.zig").Client.probeMount, .{ c.p.gpa, dial });
reached catch |err| {
if (c.p.fs.mounts.pop()) |gone| {
c.p.gpa.free(gone.name);