Skip to content
Snippets Groups Projects
Commit 371172bc authored by Colin Walters's avatar Colin Walters
Browse files

fdio: Fix errno handling from posix_fallocate() and loop_write()

For extra fun, both of these functions have different error handling
schemes.  `posix_fallocate` does *not* set `errno` because...  I'm not
sure.  Maybe POSIX was trying a new function design?

`loop_write` uses the systemd error handling style which returns
`-errno`, so we need to set errno back so that the macro can propagate
it into the `GError`.
parent c36ea3ea
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment