summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-09-06 15:53:12 -0700
committerRalph Boehme <slow@samba.org>2019-09-11 18:24:31 +0000
commit2cd27f472463a9ff68d1c7ef84e6cc26998469d5 (patch)
treed497b03e50b737a40e8b04e2e8199d0dd9834af4
parentd992708d3d51d86391f218ac72127fbc91d1971b (diff)
downloadsamba-2cd27f472463a9ff68d1c7ef84e6cc26998469d5.tar.gz
s3: VFS: vfs_time_audit. Remove mkdir_fn(). No longer used.
NB, this will now fail smb_vfs_assert_all_fns() until we remove the mkdir_fn() from the VFS definitions. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--source3/modules/vfs_time_audit.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c
index c561e61349b..df99f87f6de 100644
--- a/source3/modules/vfs_time_audit.c
+++ b/source3/modules/vfs_time_audit.c
@@ -505,28 +505,6 @@ static void smb_time_audit_rewinddir(vfs_handle_struct *handle,
}
-static int smb_time_audit_mkdir(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- mode_t mode)
-{
- int result;
- struct timespec ts1,ts2;
- double timediff;
-
- clock_gettime_mono(&ts1);
- result = SMB_VFS_NEXT_MKDIR(handle, smb_fname, mode);
- clock_gettime_mono(&ts2);
- timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9;
-
- if (timediff > audit_timeout) {
- smb_time_audit_log_smb_fname("mkdir",
- timediff,
- smb_fname);
- }
-
- return result;
-}
-
static int smb_time_audit_mkdirat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
@@ -2848,7 +2826,6 @@ static struct vfs_fn_pointers vfs_time_audit_fns = {
.seekdir_fn = smb_time_audit_seekdir,
.telldir_fn = smb_time_audit_telldir,
.rewind_dir_fn = smb_time_audit_rewinddir,
- .mkdir_fn = smb_time_audit_mkdir,
.mkdirat_fn = smb_time_audit_mkdirat,
.rmdir_fn = smb_time_audit_rmdir,
.closedir_fn = smb_time_audit_closedir,