From: Jeremy Allison Date: Wed, 21 Aug 2019 20:52:04 +0000 (-0700) Subject: s3: VFS: vfs_media_harmony. Remove mknod_fn(). No longer used. X-Git-Tag: tevent-0.10.1~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=331cfa1100cc5edfba7f00ba7876a2319d048f5a;p=thirdparty%2Fsamba.git s3: VFS: vfs_media_harmony. Remove mknod_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index 5e8c9063f6d..1b1a6606056 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -1833,40 +1833,6 @@ out: return status; } -/* - * Success: return 0 - * Failure: set errno, return -1 - */ -static int mh_mknod(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode, - SMB_DEV_T dev) -{ - int status; - struct smb_filename *clientFname = NULL; - TALLOC_CTX *ctx; - - DEBUG(MH_INFO_DEBUG, ("Entering mh_mknod\n")); - if (!is_in_media_files(smb_fname->base_name)) { - status = SMB_VFS_NEXT_MKNOD(handle, smb_fname, mode, dev); - goto out; - } - - ctx = talloc_tos(); - - if ((status = alloc_get_client_smb_fname(handle, ctx, - smb_fname, - &clientFname))) { - goto err; - } - - status = SMB_VFS_NEXT_MKNOD(handle, clientFname, mode, dev); -err: - TALLOC_FREE(clientFname); -out: - return status; -} - /* * Success: return 0 * Failure: set errno, return -1 @@ -2358,7 +2324,6 @@ static struct vfs_fn_pointers vfs_mh_fns = { .symlink_fn = mh_symlink, .readlink_fn = mh_readlink, .linkat_fn = mh_linkat, - .mknod_fn = mh_mknod, .mknodat_fn = mh_mknodat, .realpath_fn = mh_realpath, .chflags_fn = mh_chflags,