s3: VFS: vfs_shadow_copy2: Remove rmdir_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 22:10:07 +0000 (15:10 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 10 Oct 2019 06:09:41 +0000 (06:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_shadow_copy2.c

index f06978a33629db350a9fd0322595b7ae00b79d7a..099cdca0ab5eb2c7c3b37e256e245f72a2c75fad 100644 (file)
@@ -2302,25 +2302,6 @@ static int shadow_copy2_mkdirat(vfs_handle_struct *handle,
                        mode);
 }
 
-static int shadow_copy2_rmdir(vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname)
-{
-       time_t timestamp = 0;
-
-       if (!shadow_copy2_strip_snapshot(talloc_tos(),
-                                       handle,
-                                       smb_fname->base_name,
-                                       &timestamp,
-                                       NULL)) {
-               return -1;
-       }
-       if (timestamp != 0) {
-               errno = EROFS;
-               return -1;
-       }
-       return SMB_VFS_NEXT_RMDIR(handle, smb_fname);
-}
-
 static int shadow_copy2_chflags(vfs_handle_struct *handle,
                                const struct smb_filename *smb_fname,
                                unsigned int flags)
@@ -3182,7 +3163,6 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
        .fget_nt_acl_fn = shadow_copy2_fget_nt_acl,
        .get_shadow_copy_data_fn = shadow_copy2_get_shadow_copy_data,
        .mkdirat_fn = shadow_copy2_mkdirat,
-       .rmdir_fn = shadow_copy2_rmdir,
        .getxattr_fn = shadow_copy2_getxattr,
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
        .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,