]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_ceph_snapshots. Remove mkdir_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 6 Sep 2019 22:44:36 +0000 (15:44 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 11 Sep 2019 18:24:30 +0000 (18:24 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_ceph_snapshots.c

index fb5ea46c556ea5aad3f0c04c5a36d76643c04184..de6b61d8063887a80bed1bc8b81b49782c488231 100644 (file)
@@ -1310,27 +1310,6 @@ static NTSTATUS ceph_snap_gmt_get_nt_acl(vfs_handle_struct *handle,
        return status;
 }
 
-static int ceph_snap_gmt_mkdir(vfs_handle_struct *handle,
-                               const struct smb_filename *csmb_fname,
-                               mode_t mode)
-{
-       time_t timestamp = 0;
-       int ret;
-
-       ret = ceph_snap_gmt_strip_snapshot(handle,
-                                       csmb_fname->base_name,
-                                       &timestamp, NULL, 0);
-       if (ret < 0) {
-               errno = -ret;
-               return -1;
-       }
-       if (timestamp != 0) {
-               errno = EROFS;
-               return -1;
-       }
-       return SMB_VFS_NEXT_MKDIR(handle, csmb_fname, mode);
-}
-
 static int ceph_snap_gmt_mkdirat(vfs_handle_struct *handle,
                                struct files_struct *dirfsp,
                                const struct smb_filename *csmb_fname,
@@ -1668,7 +1647,6 @@ static struct vfs_fn_pointers ceph_snap_fns = {
        .get_nt_acl_fn = ceph_snap_gmt_get_nt_acl,
        .fget_nt_acl_fn = ceph_snap_gmt_fget_nt_acl,
        .get_nt_acl_fn = ceph_snap_gmt_get_nt_acl,
-       .mkdir_fn = ceph_snap_gmt_mkdir,
        .mkdirat_fn = ceph_snap_gmt_mkdirat,
        .rmdir_fn = ceph_snap_gmt_rmdir,
        .getxattr_fn = ceph_snap_gmt_getxattr,