[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Thu Jan 5 12:29:02 MST 2012


The branch, master has been updated
       via  5a8c881 Add some debug to vfs_aio_pthread so I can see when jobs start and stop.
      from  1b73896 s3-auth remove outdated comment

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 5a8c88124b976a6ac09253b973b6f0d349f19610
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Jan 4 17:02:21 2012 -0800

    Add some debug to vfs_aio_pthread so I can see when jobs start and stop.
    
    Autobuild-User: Jeremy Allison <jra at samba.org>
    Autobuild-Date: Thu Jan  5 20:28:00 CET 2012 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_aio_pthread.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c
index 56a2abd..cccaa33 100644
--- a/source3/modules/vfs_aio_pthread.c
+++ b/source3/modules/vfs_aio_pthread.c
@@ -233,6 +233,12 @@ static int aio_pthread_read(struct vfs_handle_struct *handle,
 		return -1;
 	}
 
+	DEBUG(10, ("aio_pthread_read: jobid=%d pread requested "
+		"of %llu bytes at offset %llu\n",
+		pd->jobid,
+		(unsigned long long)pd->aiocb->aio_nbytes,
+		(unsigned long long)pd->aiocb->aio_offset));
+
 	return 0;
 }
 
@@ -266,6 +272,12 @@ static int aio_pthread_write(struct vfs_handle_struct *handle,
 		return -1;
 	}
 
+	DEBUG(10, ("aio_pthread_write: jobid=%d pwrite requested "
+		"of %llu bytes at offset %llu\n",
+		pd->jobid,
+		(unsigned long long)pd->aiocb->aio_nbytes,
+		(unsigned long long)pd->aiocb->aio_offset));
+
 	return 0;
 }
 
@@ -322,6 +334,10 @@ static void aio_pthread_handle_completion(struct event_context *event_ctx,
 
 	aio_ex = (struct aio_extra *)pd->aiocb->aio_sigevent.sigev_value.sival_ptr;
 	smbd_aio_complete_aio_ex(aio_ex);
+
+	DEBUG(10,("aio_pthread_handle_completion: jobid %d completed\n",
+		jobid ));
+
 }
 
 /************************************************************************


-- 
Samba Shared Repository


More information about the samba-cvs mailing list