1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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
This commit is contained in:
Jeremy Allison 2012-01-04 17:02:21 -08:00
parent 1b738963ee
commit 5a8c88124b

View File

@ -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 ));
}
/************************************************************************