From 5a8c88124b976a6ac09253b973b6f0d349f19610 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 4 Jan 2012 17:02:21 -0800 Subject: Add some debug to vfs_aio_pthread so I can see when jobs start and stop. Autobuild-User: Jeremy Allison Autobuild-Date: Thu Jan 5 20:28:00 CET 2012 on sn-devel-104 --- source3/modules/vfs_aio_pthread.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/modules') 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 )); + } /************************************************************************ -- cgit