]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_time_audit: Rename kernel_flock to filesystem_sharemode
authorChristof Schmitt <cs@samba.org>
Mon, 20 Sep 2021 22:22:06 +0000 (15:22 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 21 Sep 2021 18:47:38 +0000 (18:47 +0000)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_time_audit.c

index c2034d20c2c05edf868b505f06e659ecc69d6974..c0cb1b38bb2dde0f3bec70ea40c02a93723a14b4 100644 (file)
@@ -1349,10 +1349,10 @@ static bool smb_time_audit_lock(vfs_handle_struct *handle, files_struct *fsp,
        return result;
 }
 
-static int smb_time_audit_kernel_flock(struct vfs_handle_struct *handle,
-                                      struct files_struct *fsp,
-                                      uint32_t share_access,
-                                      uint32_t access_mask)
+static int smb_time_audit_filesystem_sharemode(struct vfs_handle_struct *handle,
+                                              struct files_struct *fsp,
+                                              uint32_t share_access,
+                                              uint32_t access_mask)
 {
        int result;
        struct timespec ts1,ts2;
@@ -1367,7 +1367,7 @@ static int smb_time_audit_kernel_flock(struct vfs_handle_struct *handle,
        timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9;
 
        if (timediff > audit_timeout) {
-               smb_time_audit_log_fsp("kernel_flock", timediff, fsp);
+               smb_time_audit_log_fsp("filesystem_sharemode", timediff, fsp);
        }
 
        return result;
@@ -2748,7 +2748,7 @@ static struct vfs_fn_pointers vfs_time_audit_fns = {
        .ftruncate_fn = smb_time_audit_ftruncate,
        .fallocate_fn = smb_time_audit_fallocate,
        .lock_fn = smb_time_audit_lock,
-       .filesystem_sharemode_fn = smb_time_audit_kernel_flock,
+       .filesystem_sharemode_fn = smb_time_audit_filesystem_sharemode,
        .fcntl_fn = smb_time_audit_fcntl,
        .linux_setlease_fn = smb_time_audit_linux_setlease,
        .getlock_fn = smb_time_audit_getlock,