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/modules/vfs_full_audit.c | |
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/modules/vfs_full_audit.c')
-rw-r--r-- | source3/modules/vfs_full_audit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index c6d62fdd87..e279772494 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -94,7 +94,8 @@ static int smb_full_audit_statvfs(struct vfs_handle_struct *handle, static SMB_STRUCT_DIR *smb_full_audit_opendir(vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr); static SMB_STRUCT_DIRENT *smb_full_audit_readdir(vfs_handle_struct *handle, - SMB_STRUCT_DIR *dirp); + SMB_STRUCT_DIR *dirp, + SMB_STRUCT_STAT *sbuf); static void smb_full_audit_seekdir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp, long offset); static long smb_full_audit_telldir(vfs_handle_struct *handle, @@ -1029,11 +1030,11 @@ static SMB_STRUCT_DIR *smb_full_audit_opendir(vfs_handle_struct *handle, } static SMB_STRUCT_DIRENT *smb_full_audit_readdir(vfs_handle_struct *handle, - SMB_STRUCT_DIR *dirp) + SMB_STRUCT_DIR *dirp, SMB_STRUCT_STAT *sbuf) { SMB_STRUCT_DIRENT *result; - result = SMB_VFS_NEXT_READDIR(handle, dirp); + result = SMB_VFS_NEXT_READDIR(handle, dirp, sbuf); /* This operation has no reasonable error condition * (End of dir is also failure), so always succeed. |