[Samba] Samba VFS opendir and readdir
Jeremy Allison
jra at samba.org
Thu Aug 16 13:02:17 MDT 2012
On Thu, Aug 16, 2012 at 05:43:49PM +0800, Eric Liu wrote:
> Hi Folks,
>
> I am writing a VFS module, which creates virtual a file system in memory,
> not on any physical storage. However, I really don't have any idea on how
> to implement the VFS operation opendir and readdir, becuase SMB_STRUCT_DIR
> is very hard to manipulate. For example, I can not malloc a SMB_STRUCT_DIR.
> Also, there is no any document for SMB_STRUCT_DIR. I don't know how to use
> it data member.
>
> Can someone give some examples or point me to existing example code?
Check out source3/modules/vfs_scannedonly.c
source3/modules/vfs_netatalk.c
source3/modules/vfs_shadow_copy.c
for some examples.
Jeremy
More information about the samba
mailing list