Whamcloud - gitweb
b=1776
authorphil <phil>
Sat, 16 Aug 2003 18:50:24 +0000 (18:50 +0000)
committerphil <phil>
Sat, 16 Aug 2003 18:50:24 +0000 (18:50 +0000)
commit3ead3052f940109955db7c5b5499ceb34e7c6ebf
treefe2bc17f6b297d23e2b6cd89c34c23804bb7f096
parent5a9e21bdf42767c9fc6daf67debf94060ff157a7
b=1776
r=shaver
Change the read_record and write_record APIs to return 0 on success
and a negative error.  Any short read/write is reported as -EIO.

It used to return the number of bytes completed, which meant that the
error checking code had to be duplicated everywhere.  A short I/O in
either of these functions is always a failure.

(As a nice side effect, one of the orphan functions got this wrong, so
this gets us somewhat closer to having that infrastructure)
lustre/obdclass/fsfilt_ext3.c