Whamcloud - gitweb
copyin: fix error handling
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 May 2015 14:51:02 +0000 (10:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 May 2015 14:51:02 +0000 (10:51 -0400)
commitb04af4fe041fe11a2ded55406270717a7451e66d
tree93f096189e3810a3fe2cc6cad30c0c3f3d456400
parent76f132349182c5b59698e831223a7dbcb883ae3d
copyin: fix error handling

Save errno (in retval) before doing anything else, because the
"anything else" (usually com_err()) can call library functions, which
will reset errno.

Fix the error messages to use the message catalog, and don't _ever_
print an error without providing context.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/create_inode.c
misc/mke2fs.c
tests/f_create_symlinks/expect