[PVFS2-CVS]
commit by robl in pvfs2-1/src/apps/kernel/linux: pvfs2-client.c
CVS commit program
cvs at parl.clemson.edu
Thu Sep 29 19:28:55 EDT 2005
Update of /projects/cvsroot/pvfs2-1/src/apps/kernel/linux
In directory parlweb:/tmp/cvs-serv10702/src/apps/kernel/linux
Modified Files:
pvfs2-client.c
Log Message:
[pcarns]: add a protocol version to the pvfs2 device communication. ensures
clients and the kernel module come from the same source tree, but also has the
pleasing side effect of 8-byte aligning access to the header of the request.
Index: pvfs2-client.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/apps/kernel/linux/pvfs2-client.c,v
diff -u -w -p -u -r1.11 -r1.12
--- pvfs2-client.c 2 Aug 2005 16:05:39 -0000 1.11
+++ pvfs2-client.c 29 Sep 2005 22:28:54 -0000 1.12
@@ -195,6 +195,16 @@ static int monitor_pvfs2_client(options_
continue;
}
+ /* catch special case of exiting due to device error */
+ if (WEXITSTATUS(ret) == (unsigned char)-PVFS_ENODEV)
+ {
+ /* the pvfs2-client.log should log specifics from
+ * pvfs2-client-core
+ */
+ fprintf(stderr, "Device error caught, exiting now...\n");
+ exit(1);
+ }
+
if ((opts->path[0] != '/') && (opts->path [0] != '.'))
{
printf("*** The pvfs2-client-core has exited ***\n");
More information about the PVFS2-CVS
mailing list