From: Jeremy Allison Date: Wed, 21 Aug 2019 20:55:37 +0000 (-0700) Subject: s3: VFS: vfs_unityed_media. Remove mknod_fn(). No longer used. X-Git-Tag: tevent-0.10.1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d6d9cf4ee8a3422bda4d4b7164415ce5bd96b5;p=thirdparty%2Fsamba.git s3: VFS: vfs_unityed_media. Remove mknod_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index 10cea92c0fa..1816943a29d 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -1439,32 +1439,6 @@ err: return status; } -static int um_mknod(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode, - SMB_DEV_T dev) -{ - int status; - struct smb_filename *client_fname = NULL; - - DEBUG(10, ("Entering um_mknod\n")); - if (!is_in_media_files(smb_fname->base_name)) { - return SMB_VFS_NEXT_MKNOD(handle, smb_fname, mode, dev); - } - - status = alloc_get_client_smb_fname(handle, talloc_tos(), - smb_fname, &client_fname); - if (status != 0) { - goto err; - } - - status = SMB_VFS_NEXT_MKNOD(handle, client_fname, mode, dev); - -err: - TALLOC_FREE(client_fname); - return status; -} - static int um_mknodat(vfs_handle_struct *handle, files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -1952,7 +1926,6 @@ static struct vfs_fn_pointers vfs_um_fns = { .symlink_fn = um_symlink, .readlink_fn = um_readlink, .linkat_fn = um_linkat, - .mknod_fn = um_mknod, .mknodat_fn = um_mknodat, .realpath_fn = um_realpath, .chflags_fn = um_chflags,