[PVFS2-CVS] commit by neill in pvfs2/include: pvfs2-types.h
CVS commit program
cvs at parl.clemson.edu
Thu May 27 19:11:47 EDT 2004
Update of /projects/cvsroot/pvfs2/include
In directory parlweb:/tmp/cvs-serv13331/include
Modified Files:
pvfs2-types.h
Log Message:
- added a license notice for the GPL'd kernel module code in COPYING
and README files
- added Murali to the CREDITS file
- added a configure check for the kernel 2.4.x minor version to know
if we need to define a few functions or not
- added a new pvfs2-error-code that can be used as an exit code for
the pvfs2-client-core to indicate to the pvfs2-client that it should
continue respawning it, but to sleep for a bit first. [2.4.x in
particular waits a while to release the device file after the
process has died, though the same is possible under 2.6.x i guess]
- updated the test mount script with 2.4.x support if running 2.4.x
- added some debugging to client-side create state machine
- murali: fixed a logic bug in mmap-ra-cache
- murali: added matching unlocks to quickhash code functions
- removed MOD_{INC|DEC}_USE_COUNT calls, as at least under my 2.4.26
testing, they are not necessary
- removed several lock_kernel calls in the 2.4.x code paths that
caused the kernel to hang in a few places (still investigating)
- murali: fixed the in kernel mount option string parsing
- some misc cleanups
- verified that symlinks now work (at least in basic testing)
[ NOTE: this mostly works under 2.4.26 in my testing, however there
are some known problems remaining ]
Index: pvfs2-types.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-types.h,v
diff -p -u -r1.88 -r1.89
--- pvfs2-types.h 28 Apr 2004 19:02:27 -0000 1.88
+++ pvfs2-types.h 27 May 2004 22:11:47 -0000 1.89
@@ -362,7 +362,8 @@ int32_t PVFS_get_errno_mapping(int32_t e
/***************** non-errno/pvfs2 specific error codes *****************/
-#define PVFS_ECANCEL (1|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
+#define PVFS_ECANCEL (1|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
+#define PVFS_EDEVINIT (2|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
/* NOTE: PLEASE DO NOT ARBITRARILY ADD NEW ERRNO ERROR CODES!
*
@@ -438,10 +439,12 @@ int32_t PINT_errno_mapping[PVFS_ERRNO_MA
char *PINT_non_errno_strerror_mapping[] = { \
"Success", /* 0 */ \
"Operation canceled (possibly due to timeout)", \
+ "Device initialization failed" \
}; \
int32_t PINT_non_errno_mapping[] = { \
0, /* leave this one empty */ \
- PVFS_ECANCEL /* 1 */ \
+ PVFS_ECANCEL, /* 1 */ \
+ PVFS_EDEVINIT /* 2 */ \
}
/*
More information about the PVFS2-CVS
mailing list