From 6272f4c2f453c509b8a3893d4c2ac5fc356b348d Mon Sep 17 00:00:00 2001 From: Steven Danneman Date: Mon, 2 Feb 2009 21:37:51 -0800 Subject: 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 --- source3/smbd/reply.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/smbd/reply.c') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 628f481c1c..256160c402 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1380,6 +1380,9 @@ void reply_search(struct smb_request *req) DEBUG(4,("dptr_num is %d\n",dptr_num)); + /* Initialize per SMBsearch/SMBffirst/SMBfunique operation data */ + dptr_init_search_op(conn->dirptr); + if ((dirtype&0x1F) == aVOLID) { char buf[DIR_STRUCT_SIZE]; memcpy(buf,status,21); -- cgit