s3: VFS: vfs_snapper: Remove rmdir_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 22:10:58 +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_snapper.c

index d95de5d0a2574d2556803c9c1801d3e94af1eca2..db7ab9f7de98679a85cd69533eb4e4698f782dd6 100644 (file)
@@ -2571,22 +2571,6 @@ static int snapper_gmt_mkdirat(vfs_handle_struct *handle,
                        mode);
 }
 
-static int snapper_gmt_rmdir(vfs_handle_struct *handle,
-                               const struct smb_filename *fname)
-{
-       time_t timestamp = 0;
-
-       if (!snapper_gmt_strip_snapshot(talloc_tos(), handle, fname->base_name,
-                                       &timestamp, NULL)) {
-               return -1;
-       }
-       if (timestamp != 0) {
-               errno = EROFS;
-               return -1;
-       }
-       return SMB_VFS_NEXT_RMDIR(handle, fname);
-}
-
 static int snapper_gmt_chflags(vfs_handle_struct *handle,
                                const struct smb_filename *smb_fname,
                                unsigned int flags)
@@ -2912,7 +2896,6 @@ static struct vfs_fn_pointers snapper_fns = {
        .get_nt_acl_fn = snapper_gmt_get_nt_acl,
        .fget_nt_acl_fn = snapper_gmt_fget_nt_acl,
        .mkdirat_fn = snapper_gmt_mkdirat,
-       .rmdir_fn = snapper_gmt_rmdir,
        .getxattr_fn = snapper_gmt_getxattr,
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
        .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,