Skip to content

Use cqe result to derive error instead of errno - #30

Open
Dan Costinas (Dantsz) wants to merge 1 commit into
microsoft:mainfrom
Dantsz:iouringvfserrorcode
Open

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

Conversation

@Dantsz

Copy link
Copy Markdown

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 freeto 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

@Dantsz