From f6650f5d19ad90b8e1f392efbe211c4ffa0e70c0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 16 Nov 2009 09:49:23 +0100 Subject: s3: Do not talloc in readdir This is a hot codepath (called from the stat cache) --- source3/modules/vfs_default.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'source3/modules/vfs_default.c') diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 8fbea0c4f3..848440809c 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -649,17 +649,15 @@ static int vfswrap_lstat(vfs_handle_struct *handle, return result; } -static NTSTATUS vfswrap_translate_name(vfs_handle_struct *handle, - char **mapped_name, - enum vfs_translate_direction direction) +static NTSTATUS vfswrap_translate_name(struct vfs_handle_struct *handle, + const char *name, + enum vfs_translate_direction direction, + TALLOC_CTX *mem_ctx, + char **mapped_name) { - /* Default behavior is a NOOP */ - - if (*mapped_name != NULL) - return NT_STATUS_OK; - - return NT_STATUS_INVALID_PARAMETER; + return NT_STATUS_NONE_MAPPED; } + /******************************************************************** Given a stat buffer return the allocated size on disk, taking into account sparse files. -- cgit