From: Jeremy Allison Date: Wed, 21 Aug 2019 20:45:52 +0000 (-0700) Subject: s3: VFS: vfs_ceph. Remove mknod_fn(). No longer used. X-Git-Tag: tevent-0.10.1~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e701ce3152fb71bc0d7e3271602fef067be7bcd;p=thirdparty%2Fsamba.git s3: VFS: vfs_ceph. Remove mknod_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c index 1beafba4f7b..4ccadae0e5c 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -1178,18 +1178,6 @@ static int cephwrap_linkat(struct vfs_handle_struct *handle, WRAP_RETURN(result); } -static int cephwrap_mknod(struct vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode, - SMB_DEV_T dev) -{ - int result = -1; - DBG_DEBUG("[CEPH] mknod(%p, %s)\n", handle, smb_fname->base_name); - result = ceph_mknod(handle->data, smb_fname->base_name, mode, dev); - DBG_DEBUG("[CEPH] mknod(...) = %d\n", result); - WRAP_RETURN(result); -} - static int cephwrap_mknodat(struct vfs_handle_struct *handle, files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -1473,7 +1461,6 @@ static struct vfs_fn_pointers ceph_fns = { .symlink_fn = cephwrap_symlink, .readlink_fn = cephwrap_readlink, .linkat_fn = cephwrap_linkat, - .mknod_fn = cephwrap_mknod, .mknodat_fn = cephwrap_mknodat, .realpath_fn = cephwrap_realpath, .chflags_fn = cephwrap_chflags,