[PATCH] file change notification

Michael B. Allen miallen at eskimo.com
Tue Mar 4 19:06:33 GMT 2003


On Mon, 3 Mar 2003 22:03:02 +0100
Hasch at t-online.de (Juergen Hasch) wrote:

> Hi,
> 
> attached is a modified version of Hal's file change notification patch.
> It's against Samba HEAD and works for me.
> 
> Changes:
> - use push_ucs2() to send unicode file names
> - make some functions static (make proto works now)
> - limit maximum number of directory entries stored in the TDB to 2000, so  
>   large directories won't create monster TDBs.
> - the maximum reply packet size is limited to 64K. I guess this should never
>   be a problem :-)
>   What ist the maximum allowed size of a NT_TRANS packet anyway ?

Each packet can be no more than 64K but an SMB_COM_NT_TRANSACTION may
be multiple PDUs for what might amount to an endless stream (i.e. named
pipe). The MaxParameterCount field in the request indicates how large
the response can be. From the one pcap I have of W2K<-->W2K it's 4096.

Mike

-- 
A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and, more important, to tasks that have not
yet been conceived. 


More information about the samba-technical mailing list