param: rename lp function and variable from "fake_dir_create_times" to "fake_director...
authorGarming Sam <garming@catalyst.net.nz>
Tue, 4 Feb 2014 02:09:02 +0000 (15:09 +1300)
committerJeremy Allison <jra@samba.org>
Sat, 8 Feb 2014 00:19:13 +0000 (16:19 -0800)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/param/param_functions.c
lib/param/param_table.c
source3/modules/vfs_default.c
source3/modules/vfs_gpfs.c
source3/modules/vfs_media_harmony.c
source3/param/loadparm.c

index e281f37..8729d75 100644 (file)
@@ -114,7 +114,7 @@ FN_LOCAL_BOOL(delete_veto_files, delete_veto_files)
 FN_LOCAL_BOOL(dos_filemode, dos_filemode)
 FN_LOCAL_BOOL(dos_filetimes, dos_filetimes)
 FN_LOCAL_BOOL(dos_filetime_resolution, dos_filetime_resolution)
-FN_LOCAL_BOOL(fake_dir_create_times, fake_dir_create_times)
+FN_LOCAL_BOOL(fake_directory_create_times, fake_directory_create_times)
 FN_LOCAL_BOOL(blocking_locks, blocking_locks)
 FN_LOCAL_BOOL(inherit_perms, inherit_perms)
 FN_LOCAL_BOOL(inherit_acls, inherit_acls)
index 63be42c..4571c8b 100644 (file)
@@ -3814,7 +3814,7 @@ static struct parm_struct parm_table[] = {
                .label          = "fake directory create times",
                .type           = P_BOOL,
                .p_class        = P_LOCAL,
-               .offset         = LOCAL_VAR(fake_dir_create_times),
+               .offset         = LOCAL_VAR(fake_directory_create_times),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
index 09d9a66..815dc43 100644 (file)
@@ -394,7 +394,7 @@ static struct dirent *vfswrap_readdir(vfs_handle_struct *handle,
                        if (ret == 0) {
                                init_stat_ex_from_stat(sbuf,
                                        &st,
-                                       lp_fake_dir_create_times(
+                                       lp_fake_directory_create_times(
                                                SNUM(handle->conn)));
                        }
                }
@@ -958,7 +958,7 @@ static int vfswrap_stat(vfs_handle_struct *handle,
        }
 
        result = sys_stat(smb_fname->base_name, &smb_fname->st,
-                         lp_fake_dir_create_times(SNUM(handle->conn)));
+                         lp_fake_directory_create_times(SNUM(handle->conn)));
  out:
        END_PROFILE(syscall_stat);
        return result;
@@ -970,7 +970,7 @@ static int vfswrap_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_STRUC
 
        START_PROFILE(syscall_fstat);
        result = sys_fstat(fsp->fh->fd,
-                          sbuf, lp_fake_dir_create_times(SNUM(handle->conn)));
+                          sbuf, lp_fake_directory_create_times(SNUM(handle->conn)));
        END_PROFILE(syscall_fstat);
        return result;
 }
@@ -988,7 +988,7 @@ static int vfswrap_lstat(vfs_handle_struct *handle,
        }
 
        result = sys_lstat(smb_fname->base_name, &smb_fname->st,
-                          lp_fake_dir_create_times(SNUM(handle->conn)));
+                          lp_fake_directory_create_times(SNUM(handle->conn)));
  out:
        END_PROFILE(syscall_lstat);
        return result;
index 5c9981f..760d27f 100644 (file)
@@ -1445,7 +1445,7 @@ static int stat_with_capability(struct vfs_handle_struct *handle,
        if (ret == 0) {
                init_stat_ex_from_stat(
                        &smb_fname->st, &st,
-                       lp_fake_dir_create_times(SNUM(handle->conn)));
+                       lp_fake_directory_create_times(SNUM(handle->conn)));
        }
 
        return ret;
index ce981e8..bba9805 100644 (file)
@@ -607,7 +607,7 @@ static int set_fake_mtime(vfs_handle_struct *handle,
 
        DEBUG(MH_INFO_DEBUG, ("Fake stat'ing '%s'\n", statPath));
        if (statFn(statPath, &fakeStat,
-                       lp_fake_dir_create_times(SNUM(handle->conn))))
+                       lp_fake_directory_create_times(SNUM(handle->conn))))
        {
                /* This can fail for legitimate reasons - i.e. the
                 * fakeStat directory doesn't exist, which is okay
index 3f92fa4..99526a3 100644 (file)
@@ -245,7 +245,7 @@ static struct loadparm_service sDefault =
        .dos_filemode = false,
        .dos_filetimes = true,
        .dos_filetime_resolution = false,
-       .fake_dir_create_times = false,
+       .fake_directory_create_times = false,
        .blocking_locks = true,
        .inherit_perms = false,
        .inherit_acls = false,