ls but with io_uring

lsr expects input to be a directory #3

closed
opened by knightpp.bsky.social

lsr fails when passed argument is a file, it works only with directories.

$ ./zig-out/bin/lsr -l build.zig
debug: unexpected posix error: os.linux.E__enum_9517.NOTDIR
error: Unexpected
/lsr/src/main.zig:779:24: 0x121045f in onCompletion (lsr)
            // we are async, no need to defer!
                       ^
/.cache/zig/p/ourio-0.0.0-_s-z0asOAgAhpi7gSpLLvWGj_4XURez4W9TWN6SGs5BP/src/ourio/Uring.zig:457:9: 0x11fbd2f in reapCompletions (lsr)
        try task.callback(rt, task.*);
        ^
/.cache/zig/p/ourio-0.0.0-_s-z0asOAgAhpi7gSpLLvWGj_4XURez4W9TWN6SGs5BP/src/ourio.zig:108:9: 0x11fa3b1 in reapCompletions (lsr)
        return switch (self.*) {
        ^
/.cache/zig/p/ourio-0.0.0-_s-z0asOAgAhpi7gSpLLvWGj_4XURez4W9TWN6SGs5BP/src/ourio.zig:166:13: 0x11fbeea in run (lsr)
            try self.backend.reapCompletions(self);
            ^
/lsr/src/main.zig:288:5: 0x120f246 in main (lsr)
sign up or login to add to the discussion
Labels

None yet.

Participants 2
AT URI
at://did:plc:3zsjx5jgd6dbi4orckspsqiq/sh.tangled.repo.issue/3lp5lloriwl22