diff options
author | Jeremy Allison <jra@samba.org> | 2012-01-04 17:02:21 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-01-05 20:28:00 +0100 |
commit | 5a8c88124b976a6ac09253b973b6f0d349f19610 (patch) | |
tree | 1ab815975decd7ccd40607a3d300a32a52227ea6 /source3 | |
parent | 1b738963ee69eaf4951fc34d03636f840ca5fadf (diff) | |
download | samba-5a8c88124b976a6ac09253b973b6f0d349f19610.tar.gz samba-5a8c88124b976a6ac09253b973b6f0d349f19610.tar.bz2 samba-5a8c88124b976a6ac09253b973b6f0d349f19610.zip |
Add some debug to vfs_aio_pthread so I can see when jobs start and stop.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jan 5 20:28:00 CET 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_aio_pthread.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c index 56a2abd0d3..cccaa332e0 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 )); + } /************************************************************************ |