std.Io.Uring: handle ReadOnlyFileSystem in dirOpenDir and dirRealPathFile

f4eecf8d7d added ROFS handling to openat but missed these two read-only
callers, breaking compilation of any Io.Evented program.
This commit is contained in:
Siddharth Sinha
2026-04-05 20:18:39 +05:30
committed by Ryan Liptak
parent 333724ff77
commit 284ab0ad86
+2
View File
@@ -2739,6 +2739,7 @@ fn dirOpenDir(
error.FileBusy => return errnoBug(.TXTBSY),
error.PathAlreadyExists => return errnoBug(.EXIST), // Not creating.
error.OperationUnsupported => return errnoBug(.OPNOTSUPP), // No TMPFILE, no locks.
error.ReadOnlyFileSystem => return errnoBug(.ROFS), // Not creating.
else => |e| return e,
},
};
@@ -3164,6 +3165,7 @@ fn dirRealPathFile(
}, 0) catch |err| switch (err) {
error.WouldBlock => return errnoBug(.AGAIN),
error.OperationUnsupported => return errnoBug(.OPNOTSUPP), // Not asking for locks.
error.ReadOnlyFileSystem => return errnoBug(.ROFS), // Not creating.
else => |e| return e,
};
defer ev.closeAsync(fd);