[Pvfs2-cvs] commit by kunkel in pvfs2/src/apps/kernel/linux: pvfs2-client-core.c

CVS commit program cvs at parl.clemson.edu
Tue Aug 22 06:54:17 EDT 2006


Update of /projects/cvsroot/pvfs2/src/apps/kernel/linux
In directory parlweb1:/tmp/cvs-serv29962/src/apps/kernel/linux

Modified Files:
      Tag: kunkel-branch
	pvfs2-client-core.c 
Log Message:
Added tool which prints file mapping to server aliases. Added 
experimental stubs for migration tools. Added kernel tgid to request ID.
Bugfix of PINT_cached_config_get_one_server_str.


Index: pvfs2-client-core.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/kernel/linux/pvfs2-client-core.c,v
diff -p -u -r1.69.2.4 -r1.69.2.5
--- pvfs2-client-core.c	21 Aug 2006 09:29:29 -0000	1.69.2.4
+++ pvfs2-client-core.c	22 Aug 2006 10:54:17 -0000	1.69.2.5
@@ -417,12 +417,15 @@ static int create_request_id(PVFS_hint *
     if (s_opts.create_request_id)
     {
         char str[REQ_LENGTH];
-        if( vfs_request->in_upcall.pid != 0 ){
+        if( vfs_request->in_upcall.tgid != -1 ){
+            snprintf(str, REQ_LENGTH, "host:%s,pid:%d,tgid:%d", 
+                hostname, vfs_request->in_upcall.pid, 
+                vfs_request->in_upcall.tgid);
+        }else{
             snprintf(str, REQ_LENGTH, "host:%s,pid:%d", 
                 hostname, vfs_request->in_upcall.pid);
-        }else{
-            snprintf(str, REQ_LENGTH, "host:%s", hostname);
         }
+        
         str[REQ_LENGTH-1] = 0;
         PVFS_add_hint(hint, REQUEST_ID, str);
     }



More information about the Pvfs2-cvs mailing list