file-system: mount-failure diagnostics go to the kernel ring, not std.log
V1 boundary review (4 reviewers converged): the extraction routed mount- FAILURE logs through std.log where old fat used logging.write. That matters precisely when the failed mount IS /system/logs — a std.log record would then have nowhere to land. Restore the direct kernel-ring write for the failure branch (generic prefix, since the harness is filesystem-agnostic now); success stays std.log.info as before. Unexercised error path; fat-mount still green. Everything substantive in the extraction verified neutral.
This commit is contained in:
@@ -307,7 +307,11 @@ pub fn Server(comptime Engine: type) type {
|
|||||||
if (ok) {
|
if (ok) {
|
||||||
std.log.info("mounted {s}", .{m.prefix});
|
std.log.info("mounted {s}", .{m.prefix});
|
||||||
} else {
|
} else {
|
||||||
std.log.info("could not mount {s}", .{m.prefix});
|
// The failure diagnostic goes to the kernel ring directly, not
|
||||||
|
// through std.log — the mount that failed may be /system/logs
|
||||||
|
// itself, and a routed record would then have nowhere to land.
|
||||||
|
var line: [96]u8 = undefined;
|
||||||
|
_ = logging.write(std.fmt.bufPrint(&line, "file-system: could not mount {s}\n", .{m.prefix}) catch "file-system: a mount failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mounted = true;
|
mounted = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user