Skip to content

Use cqe result to derive error instead of errno#30

Open
Dantsz wants to merge 1 commit into
microsoft:mainfrom
Dantsz:iouringvfserrorcode
Open

Use cqe result to derive error instead of errno#30
Dantsz wants to merge 1 commit into
microsoft:mainfrom
Dantsz:iouringvfserrorcode

Conversation

@Dantsz
Copy link
Copy Markdown

@Dantsz Dantsz commented May 31, 2026

Hi, while debugging a failing(VfsImpl::test_read_write_operations) test on my SATA SSD, I noticed that the error thrown was No such file or directory, which didn't make much sense, looking at the man page of io_uring:

Given that io_uring is an async interface,
 errno is never used for passing back error information.
 Instead, res will contain what the equivalent system call
 would have returned in case of success, and in case of
 error res will contain -errno.```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant