s3: VFS: vfs_shadow_copy2. Remove mkdir_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 6 Sep 2019 22:48:20 +0000 (15:48 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 11 Sep 2019 18:24:31 +0000 (18:24 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_shadow_copy2.c

index 9cbbb3153d723cdc1495b05ae98dfab0100d591d..36e3ead1b1d19cde4092556cf94f8e8434709fa4 100644 (file)
@@ -2273,26 +2273,6 @@ static NTSTATUS shadow_copy2_get_nt_acl(vfs_handle_struct *handle,
        return status;
 }
 
-static int shadow_copy2_mkdir(vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname,
-                               mode_t mode)
-{
-       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_MKDIR(handle, smb_fname, mode);
-}
-
 static int shadow_copy2_mkdirat(vfs_handle_struct *handle,
                                struct files_struct *dirfsp,
                                const struct smb_filename *smb_fname,
@@ -3196,7 +3176,6 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
        .get_nt_acl_fn = shadow_copy2_get_nt_acl,
        .fget_nt_acl_fn = shadow_copy2_fget_nt_acl,
        .get_shadow_copy_data_fn = shadow_copy2_get_shadow_copy_data,
-       .mkdir_fn = shadow_copy2_mkdir,
        .mkdirat_fn = shadow_copy2_mkdirat,
        .rmdir_fn = shadow_copy2_rmdir,
        .getxattr_fn = shadow_copy2_getxattr,