]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_ceph. Remove readlink_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Thu, 22 Aug 2019 21:44:41 +0000 (14:44 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 23 Aug 2019 18:49:36 +0000 (18:49 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_ceph.c

index 30a5525f4b5e99f76fdc95b3cf9c6dde2ff386ea..74ca9c0a9aaa8cc1f5e0ad47b29b351af79d13e4 100644 (file)
@@ -1143,19 +1143,6 @@ static int cephwrap_symlink(struct vfs_handle_struct *handle,
        WRAP_RETURN(result);
 }
 
-static int cephwrap_readlink(struct vfs_handle_struct *handle,
-               const struct smb_filename *smb_fname,
-               char *buf,
-               size_t bufsiz)
-{
-       int result = -1;
-       DBG_DEBUG("[CEPH] readlink(%p, %s, %p, %llu)\n", handle,
-                       smb_fname->base_name, buf, llu(bufsiz));
-       result = ceph_readlink(handle->data, smb_fname->base_name, buf, bufsiz);
-       DBG_DEBUG("[CEPH] readlink(...) = %d\n", result);
-       WRAP_RETURN(result);
-}
-
 static int cephwrap_readlinkat(struct vfs_handle_struct *handle,
                files_struct *dirfsp,
                const struct smb_filename *smb_fname,
@@ -1476,7 +1463,6 @@ static struct vfs_fn_pointers ceph_fns = {
        .linux_setlease_fn = cephwrap_linux_setlease,
        .getlock_fn = cephwrap_getlock,
        .symlink_fn = cephwrap_symlink,
-       .readlink_fn = cephwrap_readlink,
        .readlinkat_fn = cephwrap_readlinkat,
        .linkat_fn = cephwrap_linkat,
        .mknodat_fn = cephwrap_mknodat,