the function of SMB_STRUCT_STAT *sbuf in vfs readdir() ?

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat Nov 28 11:14:16 MST 2009


On Sat, Nov 28, 2009 at 02:51:37PM +0100, Olivier Sessink wrote:
> what is the function of SMB_STRUCT_STAT *sbuf in the VFS readdir API ?
> 
> is it supposed to be filled by the SMB_VFS_NEXT_READDIR call? (e.g. can
> you use it after that call?)

Some operating systems provide something similar to the NFS
readdirplus operation, also giving stat info in a single
syscall. The READDIR sbuf argument is giving VFS
implementations a chance to fill that in. If you don't do
that in a transparent module, just pass it down.

You can't rely on it being set though, the check macros is
VALID_STAT().

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20091128/646c9e13/attachment.pgp>


More information about the samba-technical mailing list