s3:smbd: add SMB_VFS_READDIR_ATTR() to marshall direntry
authorRalph Boehme <slow@samba.org>
Wed, 26 Nov 2014 14:21:36 +0000 (15:21 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 4 Dec 2014 21:11:08 +0000 (22:11 +0100)
commit2236883cdeadab02f0ed367e13b41a32b1f85c34
treead819d92d0dd571305db4df87474e04116d39b47
parent353acb6d294bd32fdaaf1e4d95c663cae30775a0
s3:smbd: add SMB_VFS_READDIR_ATTR() to marshall direntry

SMB_VFS_READDIR_ATTR is a last minute hook to fetch additional metadata
for a directory entry when we're already marshalling the SMB reply buffer.

This would we used, when there's a need to repurpose some fields in the
the reply, like it's done with Apple's SMB2 extension "AAPL".

We then fetch AAPL metadata with the shiny new SMB_VFS_READDIR_ATTR()
VFS call and marshall appropiately.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c