Whamcloud - gitweb
libext2fs: unix_io: reflect error from read/write calls to caller
authorTheodore Ts'o <tytso@mit.edu>
Fri, 21 Oct 2016 14:21:54 +0000 (10:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Oct 2016 14:21:54 +0000 (10:21 -0400)
commit025b828c9c43dac660902bf3a874c37fc3e1e450
treeadddbd599e169eeaa7cb89d710940c37825d2d6a
parent3a68c6f1f071c2826e8ec6ceb810c98719a98717
libext2fs: unix_io: reflect error from read/write calls to caller

If the read(2) or write(2) system calls fail, return the error to the
caller instead of returning "short read" or "short write", which is
just misleading.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/unix_io.c