s3: VFS: Remove SMB_VFS_NTIMES(), no longer used
authorSamuel Cabrero <scabrero@samba.org>
Tue, 13 Apr 2021 16:00:29 +0000 (18:00 +0200)
committerSamuel Cabrero <scabrero@sn-devel-184>
Mon, 19 Apr 2021 13:19:35 +0000 (13:19 +0000)
                         ---------------
                        /               \
                       /      REST       \
                      /        IN         \
                     /        PEACE        \
                    /                       \
                    |                       |
                    |     SMB_VFS_NTIMES    |
                    |                       |
                    |                       |
                    |       13 April        |
                    |         2021          |
                    |                       |
                    |                       |
                   *|     *  *  *           | *
          _________)/\\_//(\/(/\)/\//\/\////|_)_______

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Samuel Cabrero <scabrero@samba.org>
Autobuild-Date(master): Mon Apr 19 13:19:35 UTC 2021 on sn-devel-184

examples/VFS/skel_opaque.c
examples/VFS/skel_transparent.c
source3/include/smbprofile.h
source3/include/vfs.h
source3/include/vfs_macros.h
source3/modules/The_New_VFS.org
source3/modules/The_New_VFS.txt
source3/smbd/vfs.c

index a8deb8a6da622bcb797c900deb23fb2a95a02d37..56d2e42d160d98dd8852d48ca3b9047058a23b71 100644 (file)
@@ -399,14 +399,6 @@ static struct smb_filename *skel_getwd(vfs_handle_struct *handle,
        return NULL;
 }
 
-static int skel_ntimes(vfs_handle_struct *handle,
-                      const struct smb_filename *smb_fname,
-                      struct smb_file_time *ft)
-{
-       errno = ENOSYS;
-       return -1;
-}
-
 static int skel_fntimes(vfs_handle_struct *handle,
                        files_struct *fsp,
                        struct smb_file_time *ft)
@@ -1042,7 +1034,6 @@ static struct vfs_fn_pointers skel_opaque_fns = {
        .lchown_fn = skel_lchown,
        .chdir_fn = skel_chdir,
        .getwd_fn = skel_getwd,
-       .ntimes_fn = skel_ntimes,
        .fntimes_fn = skel_fntimes,
        .ftruncate_fn = skel_ftruncate,
        .fallocate_fn = skel_fallocate,
index ba5afad1f3d8c7dfb2a7516d7b65f99f06248ad1..c5bcc5314d8234d2142a457a1ddbcffd13e27d97 100644 (file)
@@ -523,13 +523,6 @@ static struct smb_filename *skel_getwd(vfs_handle_struct *handle,
        return SMB_VFS_NEXT_GETWD(handle, ctx);
 }
 
-static int skel_ntimes(vfs_handle_struct *handle,
-                      const struct smb_filename *smb_fname,
-                      struct smb_file_time *ft)
-{
-       return SMB_VFS_NEXT_NTIMES(handle, smb_fname, ft);
-}
-
 static int skel_fntimes(vfs_handle_struct *handle,
                        files_struct *fsp,
                        struct smb_file_time *ft)
@@ -1347,7 +1340,6 @@ static struct vfs_fn_pointers skel_transparent_fns = {
        .lchown_fn = skel_lchown,
        .chdir_fn = skel_chdir,
        .getwd_fn = skel_getwd,
-       .ntimes_fn = skel_ntimes,
        .fntimes_fn = skel_fntimes,
        .ftruncate_fn = skel_ftruncate,
        .fallocate_fn = skel_fallocate,
index 792120226908a4c9448466ff179785f4e16de973..1bb429778c4ce2fa3afd517d13b6035438efca29 100644 (file)
@@ -74,7 +74,6 @@ struct tevent_context;
        SMBPROFILE_STATS_BASIC(syscall_lchown) \
        SMBPROFILE_STATS_BASIC(syscall_chdir) \
        SMBPROFILE_STATS_BASIC(syscall_getwd) \
-       SMBPROFILE_STATS_BASIC(syscall_ntimes) \
        SMBPROFILE_STATS_BASIC(syscall_fntimes) \
        SMBPROFILE_STATS_BASIC(syscall_ftruncate) \
        SMBPROFILE_STATS_BASIC(syscall_fallocate) \
index d83c67c613f9ead3eb1c5e2ca5918743eb4b964b..eaa816d8becc6dfc82757f257bb4b45b5fd664bc 100644 (file)
  * Version 45 - Remove SMB_VFS_GET_DOS_ATTRIBUTES()
  * Version 45 - Remove SMB_VFS_CHMOD
  * Version 45 - Add SMB_VFS_FNTIMES
+ * Version 45 - Remove SMB_VFS_NTIMES
  */
 
 #define SMB_VFS_INTERFACE_VERSION 45
@@ -1017,9 +1018,6 @@ struct vfs_fn_pointers {
                         const struct smb_filename *smb_fname);
        struct smb_filename *(*getwd_fn)(struct vfs_handle_struct *handle,
                                TALLOC_CTX *mem_ctx);
-       int (*ntimes_fn)(struct vfs_handle_struct *handle,
-                        const struct smb_filename *smb_fname,
-                        struct smb_file_time *ft);
        int (*fntimes_fn)(struct vfs_handle_struct *handle,
                          struct files_struct *fsp,
                          struct smb_file_time *ft);
index eed6779bbaadedbbd956ad3ade52911e0b1a16d3..40ff68aedab3caa8cd3224457f1104c22418c7b1 100644 (file)
 #define SMB_VFS_NEXT_GETWD(handle, ctx) \
        smb_vfs_call_getwd((handle)->next, (ctx))
 
-#define SMB_VFS_NTIMES(conn, path, ts) \
-       smb_vfs_call_ntimes((conn)->vfs_handles, (path), (ts))
-#define SMB_VFS_NEXT_NTIMES(handle, path, ts) \
-       smb_vfs_call_ntimes((handle)->next, (path), (ts))
-
 #define SMB_VFS_FNTIMES(fsp, ts) \
        smb_vfs_call_fntimes((fsp)->conn->vfs_handles, (fsp), (ts))
 #define SMB_VFS_NEXT_FNTIMES(handle, fsp, ts) \
index 5dc899befb6ce64c6f7bcfa1208d4d612f4cc262..19dd46f9fe1e47daf62311cbb922ff4536dcfbfb 100644 (file)
@@ -260,7 +260,7 @@ whenever VFS access is done in a piecemeal fashion.
 | SMB_VFS_LSTAT()                   | [[Path][Path]]     | Todo   |
 | SMB_VFS_MKDIRAT()                 | [[NsC][NsC]]      | -      |
 | SMB_VFS_MKNODAT()                 | [[NsC][NsC]]      | -      |
-| SMB_VFS_NTIMES()                  | [[Path][Path]]     | Todo   |
+| SMB_VFS_NTIMES()                  | [[Path][Path]]    | -      |
 | SMB_VFS_OFFLOAD_READ_RECV()       | [[fsp][fsp]]      | -      |
 | SMB_VFS_OFFLOAD_READ_SEND()       | [[fsp][fsp]]      | -      |
 | SMB_VFS_OFFLOAD_WRITE_RECV()      | [[fsp][fsp]]      | -      |
@@ -310,7 +310,7 @@ whenever VFS access is done in a piecemeal fashion.
 |---------------------------------+----------+--------|
 | SMB_VFS_SYS_ACL_DELETE_DEF_FD() | [[xpathref][xpathref]] | Todo   |
 | SMB_VFS_READDIR_ATTRAT()        | [[Enum][Enum]]     | Todo   |
-| SMB_VFS_FUTIMENS()              | [[fsp][fsp]]      | Todo   |
+| SMB_VFS_FNTIMENS()              | [[fsp][fsp]]      | -      |
 |---------------------------------+----------+--------|
 
 ** VFS functions by category
index 5121229dc0ac076698e9bf39aed735066fb72c08..51e7d347a16bda2ea012d3489680d6fa0ee62dce 100644 (file)
@@ -328,7 +328,7 @@ Table of Contents
    SMB_VFS_LSTAT()                    [Path]      Todo
    SMB_VFS_MKDIRAT()                  [NsC]       -
    SMB_VFS_MKNODAT()                  [NsC]       -
-   SMB_VFS_NTIMES()                   [Path]      Todo
+   SMB_VFS_NTIMES()                   [Path]      -
    SMB_VFS_OFFLOAD_READ_RECV()        [fsp]       -
    SMB_VFS_OFFLOAD_READ_SEND()        [fsp]       -
    SMB_VFS_OFFLOAD_WRITE_RECV()       [fsp]       -
@@ -400,7 +400,7 @@ Table of Contents
   ─────────────────────────────────────────────────────
    SMB_VFS_SYS_ACL_DELETE_DEF_FD()  [xpathref]  Todo
    SMB_VFS_READDIR_ATTRAT()         [Enum]      Todo
-   SMB_VFS_FUTIMENS()               [fsp]       Todo
+   SMB_VFS_FNTIMENS()               [fsp]       -
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 
 
index 5a9a7afa03656524f400d002a817f798ef30b9a3..b0f65e19df19e378b36be5a44496d2c302ef0e82 100644 (file)
@@ -2245,14 +2245,6 @@ struct smb_filename *smb_vfs_call_getwd(struct vfs_handle_struct *handle,
        return handle->fns->getwd_fn(handle, ctx);
 }
 
-int smb_vfs_call_ntimes(struct vfs_handle_struct *handle,
-                       const struct smb_filename *smb_fname,
-                       struct smb_file_time *ft)
-{
-       VFS_FIND(ntimes);
-       return handle->fns->ntimes_fn(handle, smb_fname, ft);
-}
-
 int smb_vfs_call_fntimes(struct vfs_handle_struct *handle,
                         struct files_struct *fsp,
                         struct smb_file_time *ft)