[PVFS2-CVS] commit by neill in pvfs2/src/kernel/linux-2.6: file.c

CVS commit program cvs at parl.clemson.edu
Mon Jul 12 18:12:42 EDT 2004


Update of /projects/cvsroot/pvfs2/src/kernel/linux-2.6
In directory parlweb:/tmp/cvs-serv19097/src/kernel/linux-2.6

Modified Files:
	file.c 
Log Message:
- add some error handling; null out ptrs that are no longer in use
  (fixes several crash bugs found in the job expiration case); add
  some sanity checks, etc
- make server continue processing, rather than abort on
  BMI_testcontext errors (these are recoverable)


Index: file.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/file.c,v
diff -p -u -r1.72 -r1.73
--- file.c	8 Jul 2004 16:17:13 -0000	1.72
+++ file.c	12 Jul 2004 21:12:42 -0000	1.73
@@ -104,7 +104,8 @@ ssize_t pvfs2_inode_read(
         ret = pvfs_bufmap_get(&buffer_index);
         if (ret < 0)
         {
-            pvfs2_error("pvfs2_inode_read: pvfs_bufmap_get() failure.\n");
+            pvfs2_error("pvfs2_inode_read: pvfs_bufmap_get() "
+                        "failure (%d)\n", ret);
             op_release(new_op);
             *offset = original_offset;
             return ret;
@@ -253,7 +254,8 @@ static ssize_t pvfs2_file_write(
         ret = pvfs_bufmap_get(&buffer_index);
         if (ret < 0)
         {
-            pvfs2_error("pvfs2_file_write: pvfs_bufmap_get() failure.\n");
+            pvfs2_error("pvfs2_file_write: pvfs_bufmap_get() "
+                        "failure (%d)\n", ret);
             op_release(new_op);
             *offset = original_offset;
             return ret;



More information about the PVFS2-CVS mailing list