[PVFS2-CVS] commit by neill in pvfs2/src/common/misc: errno-mapping.c

CVS commit program cvs at parl.clemson.edu
Wed Sep 15 15:46:22 EDT 2004


Update of /projects/cvsroot/pvfs2/src/common/misc
In directory parlweb:/tmp/cvs-serv25854/src/common/misc

Modified Files:
	errno-mapping.c 
Log Message:
- modify server side remove state machine to check the k_size of the
  dirdata object being removed if it's a directory to report early
  back to the client that the directory is not empty (if it's not)
- remove the readdir checks in the client remove path now that the
  server-side remove can tell us directly if a directory is not empty
- modified PVFS specific error routines to print the value of
  unrecognized error codes if encountered
- some cleanups



Index: errno-mapping.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/misc/errno-mapping.c,v
diff -p -u -r1.11 -r1.12
--- errno-mapping.c	28 Jul 2004 14:32:36 -0000	1.11
+++ errno-mapping.c	15 Sep 2004 18:46:22 -0000	1.12
@@ -73,9 +73,9 @@ void PVFS_perror(char *text, int retcode
     }
     else
     {
-	fprintf(stderr, "Warning: non PVFS2 error code:\n");
-	fprintf(stderr, "%s: %s\n", text,
-	strerror(-retcode));
+	fprintf(stderr, "Warning: non PVFS2 error code (%x):\n",
+                -retcode);
+	fprintf(stderr, "%s: %s\n", text, strerror(-retcode));
     }
     return;
 }
@@ -100,10 +100,10 @@ void PVFS_perror_gossip(char *text, int 
     {
 	gossip_err("%s: %s\n", text,
                    strerror(PVFS_ERROR_TO_ERRNO(-retcode)));
-    }       
+    }
     else
     {
-	gossip_err("Warning: non PVFS2 error code:\n");
+	gossip_err("Warning: non PVFS2 error code (%x):\n", -retcode);
 	gossip_err("%s: %s\n", text, strerror(-retcode));
     }
     return;



More information about the PVFS2-CVS mailing list