HomeFreeBSD

Improve error handling for posix_fallocate(2) and posix_fadvise(2).

Description

Improve error handling for posix_fallocate(2) and posix_fadvise(2).

  • Set td_errno so that ktrace and dtrace can obtain the syscall error number in the usual way.
  • Pass negative error numbers directly to the syscall layer, as they're not intended to be returned to userland.

Reviewed by: kib
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D5425

Details

Provenance
markjAuthored on
Reviewer
kib
Differential Revision
D5425: Improve error handling for posix file syscalls
Parents
rS296059: Add myself as src committer
Branches
Unknown
Tags
Unknown