diff options
author | Steven Danneman <steven.danneman@isilon.com> | 2009-01-22 20:14:38 -0800 |
---|---|---|
committer | Steven Danneman <steven.danneman@isilon.com> | 2009-02-09 23:56:16 -0800 |
commit | af0e199b31ea4132e369508d72888757887b3327 (patch) | |
tree | 38be76f86b5c7b226785ed8c5cec559fab775756 /source3/smbd | |
parent | 9a7491e83177ba32e30f29e1b84b8b8be9888953 (diff) | |
download | samba-af0e199b31ea4132e369508d72888757887b3327.tar.gz samba-af0e199b31ea4132e369508d72888757887b3327.tar.bz2 samba-af0e199b31ea4132e369508d72888757887b3327.zip |
Add an optional SMB_STRUCT_SMB parameter to VFS_OP_READDIR
* this allows VFS implementations that prefetch stat information on
readdir to return it through one VFS call
* backwards compatibility is maintained by passing in NULL
* if the system readdir doesn't return stat info, the stat struct is
set to invalid
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/vfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 8d82ca550c..9580247368 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -705,7 +705,7 @@ SMB_OFF_T vfs_transfer_file(files_struct *in, files_struct *out, SMB_OFF_T n) A vfs_readdir wrapper which just returns the file name. ********************************************************************/ -char *vfs_readdirname(connection_struct *conn, void *p) +char *vfs_readdirname(connection_struct *conn, void *p, SMB_STRUCT_STAT *sbuf) { SMB_STRUCT_DIRENT *ptr= NULL; char *dname; @@ -713,7 +713,7 @@ char *vfs_readdirname(connection_struct *conn, void *p) if (!p) return(NULL); - ptr = SMB_VFS_READDIR(conn, (DIR *)p); + ptr = SMB_VFS_READDIR(conn, (DIR *)p, sbuf); if (!ptr) return(NULL); |