diff options
author | Steven Danneman <steven.danneman@isilon.com> | 2009-02-02 21:37:51 -0800 |
---|---|---|
committer | Steven Danneman <steven.danneman@isilon.com> | 2009-02-09 23:56:17 -0800 |
commit | 6272f4c2f453c509b8a3893d4c2ac5fc356b348d (patch) | |
tree | 82dce05824a6106a371febc4ec9ca6b2864cbcde /source3/smbd/dir.c | |
parent | 25d345eb39c69b2b42a966846ae893b068de40a4 (diff) | |
download | samba-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/smbd/dir.c')
-rw-r--r-- | source3/smbd/dir.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index c4f6b4fe55..6618bf07b0 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -681,6 +681,14 @@ void dptr_DirCacheAdd(struct dptr_struct *dptr, const char *name, long offset) } /**************************************************************************** + Initialize variables & state data at the beginning of all search SMB requests. +****************************************************************************/ +void dptr_init_search_op(struct dptr_struct *dptr) +{ + return SMB_VFS_INIT_SEARCH_OP(dptr->conn, dptr->dir_hnd->dir); +} + +/**************************************************************************** Fill the 5 byte server reserved dptr field. ****************************************************************************/ |