summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_default.c
diff options
context:
space:
mode:
authorSteven Danneman <steven.danneman@isilon.com>2009-02-02 21:37:51 -0800
committerSteven Danneman <steven.danneman@isilon.com>2009-02-09 23:56:17 -0800
commit6272f4c2f453c509b8a3893d4c2ac5fc356b348d (patch)
tree82dce05824a6106a371febc4ec9ca6b2864cbcde /source3/modules/vfs_default.c
parent25d345eb39c69b2b42a966846ae893b068de40a4 (diff)
downloadsamba-6272f4c2f453c509b8a3893d4c2ac5fc356b348d.tar.gz
samba-6272f4c2f453c509b8a3893d4c2ac5fc356b348d.tar.bz2
samba-6272f4c2f453c509b8a3893d4c2ac5fc356b348d.zip
s3: Added SMB_VFS_INIT_SEARCH_OP to initialize data at the beginning of SMB search requests.
By default this VFS call is a NOOP, but the onefs vfs module takes advantage of it to initialize direntry search caches at the beginning of each TRANS2_FIND_FIRST, TRANS2_FIND_NEXT, SMBffirst, SMBsearch, and SMBunique
Diffstat (limited to 'source3/modules/vfs_default.c')
-rw-r--r--source3/modules/vfs_default.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 7d61191a69..cb56690dbb 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -206,6 +206,13 @@ static int vfswrap_closedir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp)
return result;
}
+static void vfswrap_init_search_op(vfs_handle_struct *handle,
+ SMB_STRUCT_DIR *dirp)
+{
+ /* Default behavior is a NOOP */
+ return;
+}
+
/* File operations */
static int vfswrap_open(vfs_handle_struct *handle, const char *fname,
@@ -1449,6 +1456,8 @@ static vfs_op_tuple vfs_default_ops[] = {
SMB_VFS_LAYER_OPAQUE},
{SMB_VFS_OP(vfswrap_closedir), SMB_VFS_OP_CLOSEDIR,
SMB_VFS_LAYER_OPAQUE},
+ {SMB_VFS_OP(vfswrap_init_search_op), SMB_VFS_OP_INIT_SEARCH_OP,
+ SMB_VFS_LAYER_OPAQUE},
/* File operations */