Time interval for log file renaming.

Gerald (Jerry) Carter jerry at samba.org
Fri Jan 3 15:27:01 GMT 2003

Hash: SHA1

On Fri, 3 Jan 2003, Colin Slade wrote:

> Hi there
> A quick question, as I've looked around but can't find it documented
> anywhere. From the man page of smb.conf re. max log size :
> "Samba periodically checks the size and if it is exceeded it will rename
> the file, adding a ".old" extension."
> Is there a way to set/change this time period ?
> The reason I ask is that during large (3-400MB) downloads to a samba
> share I noticed that log files were growing up to 40 MB even although
> the max log size is set to 500k.

IIRC, the log rotation is handled in our idle loop.  SMB packets are given 
priority so on a busy server the period will be longer than on an idle 
one.  See smbd/process.c or something like that.

cheers, jerry
 Hewlett-Packard            ------------------------- http://www.hp.com
 SAMBA Team                 ---------------------- http://www.samba.org
 GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
 ISBN 0-672-32269-2         "SAMS Teach Yourself Samba in 24 Hours" 2ed
 "You can never go home again, Oatman, but I guess you can shop there."  
                            --John Cusack - "Grosse Point Blank" (1997)

Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/


More information about the samba-technical mailing list