[PVFS2-CVS] commit by neill in pvfs2/include: pvfs2-types.h pvfs2-util.h

CVS commit program cvs at parl.clemson.edu
Wed Jul 7 12:08:11 EDT 2004


Update of /projects/cvsroot/pvfs2/include
In directory parlweb:/tmp/cvs-serv6648/include

Modified Files:
      Tag: pvfs2-nm-nb-branch
	pvfs2-types.h pvfs2-util.h 
Log Message:
- implement PVFS_strerror_r; an equivalent to strerror_r (the
  thread-safe strerror call) that handles PVFS_error codes [ Brad,
  take note! :-P ]
- move PVFS_util_min to pvfs2-util.h, as it's a useful macro
- removed some debugging noise from pvfs2-client-core
- to avoid long stalls on cancelled I/O operations for now, use a
  specially added BMI_set_info flag to drop the connection on bmi
  cancellations (thanks, Phil!) -- this makes the client more
  responsive after cancellation since the server reqsched would
  normally need to timeout the I/O job it was working on before
  allowing any other jobs through.  the old client was killed, so it
  was similar to dropping the connection like we're doing now until we
  can implement a specific I/O cancellation operation to be sent to
  the servers explicitly
- make sure all internal I/O jobs are accounted for on cancellation
  within the sysint test()/testsome() methods to avoid allowing those
  jobs to pop out.  this is problematic for the caller since they
  should be hidden by the interface.  now we only complete a cancelled
  I/O call when ALL cancelled jobs are accounted for
- fix the final sys-io error code, as it's already resolved in
  io_analyze_results


Index: pvfs2-types.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-types.h,v
diff -p -u -r1.89.2.1 -r1.89.2.2
--- pvfs2-types.h	22 Jun 2004 19:12:55 -0000	1.89.2.1
+++ pvfs2-types.h	7 Jul 2004 15:08:11 -0000	1.89.2.2
@@ -272,6 +272,7 @@ enum PVFS_server_mode
  * that indicates where the error came from.  These are |'d together.
  */
 
+int PVFS_strerror_r(int errnum, char *buf, int n);
 void PVFS_perror(char *text, int retcode);
 void PVFS_perror_gossip(char* text, int retcode);
 int32_t PVFS_get_errno_mapping(int32_t error);

Index: pvfs2-util.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-util.h,v
diff -p -u -r1.24.2.2 -r1.24.2.3
--- pvfs2-util.h	15 Jun 2004 17:40:32 -0000	1.24.2.2
+++ pvfs2-util.h	7 Jul 2004 15:08:11 -0000	1.24.2.3
@@ -11,7 +11,13 @@
 #ifndef __PVFS2_UTIL_H
 #define __PVFS2_UTIL_H
 
+#include "pvfs2.h"
 #include "pvfs2-types.h"
+
+/* Define min macro with pvfs2 prefix */
+#ifndef PVFS_util_min
+#define PVFS_util_min(x1,x2) ((x1) > (x2))? (x2):(x1)
+#endif
 
 /* results of parsing a pvfs2 tabfile, may contain more than one entry */
 struct PVFS_util_tab_s



More information about the PVFS2-CVS mailing list