]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: Indicate error from afs_osi_Read/Write better
authorAndrew Deason <adeason@sinenomine.net>
Thu, 22 Dec 2011 20:01:52 +0000 (15:01 -0500)
committerDerrick Brashear <shadow@dementix.org>
Thu, 9 Aug 2012 15:02:22 +0000 (08:02 -0700)
commit3127ec4e693d2a3efaf2bba7a000cac69c624452
treec8ec3b20e3629685248ac2b80f3c6d549f7a85d2
parent6a48d79247cc259e3dbdddfd52e5afb4f6a54ac0
afs: Indicate error from afs_osi_Read/Write better

Currently afs_osi_Read and afs_osi_Write just return -1 on any I/O
error, even though they know the error code given from the OS VFS.
Just return that code instead so the caller can see what the error
was; but negate it, so it's clear that it is an error.

Reviewed-on: http://gerrit.openafs.org/6412
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit b5ca12ac4696c4049be14974f1e946bb55e1c440)

Change-Id: Ib5a674af7e0424691887b20d24782a6740d11414
Reviewed-on: http://gerrit.openafs.org/7938
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/AIX/osi_file.c
src/afs/DARWIN/osi_file.c
src/afs/FBSD/osi_file.c
src/afs/HPUX/osi_file.c
src/afs/IRIX/osi_file.c
src/afs/LINUX/osi_file.c
src/afs/LINUX24/osi_file.c
src/afs/NBSD/osi_file.c
src/afs/OBSD/osi_file.c
src/afs/SOLARIS/osi_file.c