[Pvfs2-cvs] commit by slang in pvfs2/include: pvfs2-types.h
CVS commit program
cvs at parl.clemson.edu
Mon Mar 26 13:26:34 EST 2007
Update of /projects/cvsroot/pvfs2/include
In directory parlweb1:/tmp/cvs-serv7483/include
Modified Files:
pvfs2-types.h
Log Message:
[phil]: This patch corrects a variety of error code problems.
See: http://www.beowulf-underground.org/pipermail/pvfs2-developers/2007-March/003253.html
Index: pvfs2-types.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-types.h,v
diff -p -u -r1.140 -r1.141
--- pvfs2-types.h 15 Mar 2007 21:45:33 -0000 1.140
+++ pvfs2-types.h 26 Mar 2007 18:26:34 -0000 1.141
@@ -539,6 +539,7 @@ PVFS_error PVFS_get_errno_mapping(PVFS_e
#define PVFS_EHOSTUNREACH E(56) /* No route to host */
#define PVFS_EALREADY E(57) /* Operation already in progress */
#define PVFS_EACCES E(58) /* Access not allowed */
+#define PVFS_ECONNRESET E(59) /* Connection reset by peer */
/***************** non-errno/pvfs2 specific error codes *****************/
#define PVFS_ECANCEL (1|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
@@ -556,7 +557,7 @@ PVFS_error PVFS_get_errno_mapping(PVFS_e
* UNIX ERRNO VALUE IN THE MACROS BELOW (USED IN
* src/common/misc/errno-mapping.c and the kernel module)
*/
-#define PVFS_ERRNO_MAX 59
+#define PVFS_ERRNO_MAX 60
#ifndef EUNATCH
#define EUNATCH -1
@@ -642,7 +643,8 @@ PVFS_error PINT_errno_mapping[PVFS_ERRNO
EHOSTDOWN, \
EHOSTUNREACH, \
EALREADY, \
- EACCES, /* 58 */ \
+ EACCES, \
+ ECONNRESET, /* 59 */ \
0 /* PVFS_ERRNO_MAX */ \
}; \
const char *PINT_non_errno_strerror_mapping[] = { \
More information about the Pvfs2-cvs
mailing list