From: Jeremy Allison Date: Fri, 6 Sep 2019 22:47:40 +0000 (-0700) Subject: s3: VFS: vfs_media_harmony. Remove mkdir_fn(). No longer used. X-Git-Tag: talloc-2.3.1~876 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c33eee0232f2ccc822dfb8da254e40c58afafdf0;p=thirdparty%2Fsamba.git s3: VFS: vfs_media_harmony. Remove mkdir_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index 0d37928d18b..f2f9526e541 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -1040,42 +1040,6 @@ static void mh_rewinddir(vfs_handle_struct *handle, ((mh_dirinfo_struct*)dirp)->dirstream); } -/* - * Success: return 0 - * Failure: set errno, return -1 - */ -static int mh_mkdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode) -{ - int status; - struct smb_filename *clientFname = NULL; - const char *path = smb_fname->base_name; - - DEBUG(MH_INFO_DEBUG, ("Entering with path '%s'\n", path)); - - if (!is_in_media_files(path)) - { - status = SMB_VFS_NEXT_MKDIR(handle, smb_fname, mode); - goto out; - } - - status = alloc_get_client_smb_fname(handle, - talloc_tos(), - smb_fname, - &clientFname); - if (status != 0) { - goto err; - } - - status = SMB_VFS_NEXT_MKDIR(handle, clientFname, mode); -err: - TALLOC_FREE(clientFname); -out: - DEBUG(MH_INFO_DEBUG, ("Leaving with path '%s'\n", path)); - return status; -} - /* * Success: return 0 * Failure: set errno, return -1 @@ -2358,7 +2322,6 @@ static struct vfs_fn_pointers vfs_mh_fns = { .seekdir_fn = mh_seekdir, .telldir_fn = mh_telldir, .rewind_dir_fn = mh_rewinddir, - .mkdir_fn = mh_mkdir, .mkdirat_fn = mh_mkdirat, .rmdir_fn = mh_rmdir, .closedir_fn = mh_closedir,