ls but with io_uring

fails when input path does not exist #5

open opened by knightpp.bsky.social

pass any path that does not exist to lsr

lsr /does/not/exist

$ ./zig-out/bin/lsr -l /nix/stor
debug: unexpected posix error: os.linux.E__enum_9494.NOENT
error: Unexpected
/lsr/src/main.zig:802:29: 0x120f6be in onCompletion (lsr)
                    else => return err,
                            ^
/.cache/zig/p/ourio-0.0.0-_s-z0fsOAgBBgWaFDe0-yxAFdOJYN0ySemeXbEghPUh9/src/ourio/Uring.zig:459:9: 0x11fb158 in reapCompletions (lsr)
        try task.callback(rt, task.*);
        ^
/.cache/zig/p/ourio-0.0.0-_s-z0fsOAgBBgWaFDe0-yxAFdOJYN0ySemeXbEghPUh9/src/ourio.zig:108:9: 0x11f99e1 in reapCompletions (lsr)
        return switch (self.*) {
        ^
/.cache/zig/p/ourio-0.0.0-_s-z0fsOAgBBgWaFDe0-yxAFdOJYN0ySemeXbEghPUh9/src/ourio.zig:166:13: 0x11fb2fa in run (lsr)
            try self.backend.reapCompletions(self);
            ^
/lsr/src/main.zig:288:5: 0x120e5a4 in main (lsr)
    try ring.run(.until_done);
    ^
sign up or login to add to the discussion
Labels

None yet.

Participants 1
AT URI
at://did:plc:3zsjx5jgd6dbi4orckspsqiq/sh.tangled.repo.issue/3lp7v56bbj322