Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xfs: Fix error return for fallocate() on XFS
Noticed that through glibc fallocate would return 28 rather than -1 and errno = 28 for ENOSPC. The xfs routines uses XFS_ERROR format positive return error codes while the syscalls use negative return codes. Fixup the two cases in xfs_vn_fallocate syscall to convert to negative. Signed-off-by: Jason Gunthorpe <[email protected]> Reviewed-by: Eric Sandeen <[email protected]> Signed-off-by: Alex Elder <[email protected]>
- Loading branch information