summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2017-11-10 21:47:29 +0200
committerJeremy Allison <jra@samba.org>2017-11-11 04:49:27 +0100
commitfba8bd6cb8315cfbab8883b12eb818a0f8fddfa7 (patch)
tree43fb80bcd4ed4467aafbd2fc2eafed75cc9f2da0 /source3
parent0f1dede9a90996d0a0cbbe91c2a0389b47b706b7 (diff)
downloadsamba-fba8bd6cb8315cfbab8883b12eb818a0f8fddfa7.tar.gz
vfs_time_audit: remove init_search_op implementation
This VFS call is about to be removed in a following commit. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_time_audit.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c
index 7116796cc46..8e08a7be095 100644
--- a/source3/modules/vfs_time_audit.c
+++ b/source3/modules/vfs_time_audit.c
@@ -550,22 +550,6 @@ static int smb_time_audit_closedir(vfs_handle_struct *handle,
return result;
}
-static void smb_time_audit_init_search_op(vfs_handle_struct *handle,
- DIR *dirp)
-{
- struct timespec ts1,ts2;
- double timediff;
-
- clock_gettime_mono(&ts1);
- SMB_VFS_NEXT_INIT_SEARCH_OP(handle, dirp);
- clock_gettime_mono(&ts2);
- timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9;
-
- if (timediff > audit_timeout) {
- smb_time_audit_log("init_search_op", timediff);
- }
-}
-
static int smb_time_audit_open(vfs_handle_struct *handle,
struct smb_filename *fname,
files_struct *fsp,
@@ -2708,7 +2692,6 @@ static struct vfs_fn_pointers vfs_time_audit_fns = {
.mkdir_fn = smb_time_audit_mkdir,
.rmdir_fn = smb_time_audit_rmdir,
.closedir_fn = smb_time_audit_closedir,
- .init_search_op_fn = smb_time_audit_init_search_op,
.open_fn = smb_time_audit_open,
.create_file_fn = smb_time_audit_create_file,
.close_fn = smb_time_audit_close,