[Pvfs2-cvs] commit by kunkel in pvfs2/src/io/dev: pint-dev.c
CVS commit program
cvs at parl.clemson.edu
Sat Dec 2 06:20:37 EST 2006
Update of /projects/cvsroot/pvfs2/src/io/dev
In directory parlweb1:/tmp/cvs-serv18213/src/io/dev
Modified Files:
Tag: kunkel-hint-branch
pint-dev.c
Log Message:
Upgrade to current CVS version
Index: pint-dev.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/dev/pint-dev.c,v
diff -p -u -r1.30.2.1 -r1.30.2.2
--- pint-dev.c 25 Sep 2006 12:40:21 -0000 1.30.2.1
+++ pint-dev.c 2 Dec 2006 11:20:37 -0000 1.30.2.2
@@ -282,6 +282,10 @@ int PINT_dev_test_unexpected(
pfd.fd = pdev_fd;
pfd.events = POLLIN;
+ gossip_debug(GOSSIP_DEV_DEBUG,
+ "[DEV]: Entered %s: incount: %d, timeout: %d\n",
+ __func__, incount, max_idle_time);
+
do
{
/*
@@ -317,6 +321,9 @@ int PINT_dev_test_unexpected(
/* device is emptied */
if (avail == 0)
{
+ gossip_debug(GOSSIP_DEV_DEBUG,
+ "[DEV]: Exiting %s: incount: %d, device empty!\n",
+ __func__, incount);
return ((*outcount > 0) ? 1 : 0);
}
@@ -390,7 +397,8 @@ int PINT_dev_test_unexpected(
if(*proto_ver != PVFS_KERNEL_PROTO_VERSION)
{
gossip_err("Error: protocol versions do not match.\n");
- gossip_err("Please check that your pvfs2 module and pvfs2-client versions are consistent.\n");
+ gossip_err("Please check that your pvfs2 module "
+ "and pvfs2-client versions are consistent.\n");
ret = -(PVFS_EPROTO|PVFS_ERROR_DEV);
goto dev_test_unexp_error;
}
@@ -429,6 +437,11 @@ int PINT_dev_test_unexpected(
*/
} while((*outcount < incount) && avail);
+
+ gossip_debug(GOSSIP_DEV_DEBUG,
+ "[DEV]: %s Exit: "
+ "incount: %d, outcount: %d, bytes available: %d\n",
+ __func__, incount, *outcount, avail);
return ((*outcount > 0) ? 1 : 0);
More information about the Pvfs2-cvs
mailing list