summaryrefslogtreecommitdiffstats
path: root/source/lib/debug.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-08-03 19:07:55 +0000
committerJeremy Allison <jra@samba.org>1998-08-03 19:07:55 +0000
commita0748c3f53974483680ebe2ea4f556ece8d7fa43 (patch)
tree70a87f23d9175d165b9d670ab563fb6d04e7c6ab /source/lib/debug.c
parent9b5d431661c55056c31bedf9ef3900f27e1c5292 (diff)
downloadsamba-a0748c3f53974483680ebe2ea4f556ece8d7fa43.tar.gz
samba-a0748c3f53974483680ebe2ea4f556ece8d7fa43.tar.xz
samba-a0748c3f53974483680ebe2ea4f556ece8d7fa43.zip
First implementation of ChangeNotify - this version only checks
for changes in the directory modify timestamps. A better version will look at the requested client flags, and create a hash that represents the current state of the directory, and check against this instead. debug.c: Added lp_timestamp_logs() function. loadparm.c: Added "change notify timeout" in seconds (default 60) - this is the scan rate for a directory. Added ""timestamp logs" boolean - default True. Turns off log timestamps (so I can read them :-). nttrans.c: ChangeNotify implementation. server.c: ChangeNotify implementation. shmem_sysv.c: Added exits on shmem errors (without them smbd can core dump if some calls fail). smb.h: Added ChangeNotify flags for future use. util.c: Tidied up typedef. Jeremy.
Diffstat (limited to 'source/lib/debug.c')
-rw-r--r--source/lib/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/lib/debug.c b/source/lib/debug.c
index 476023a7bab..02bf6710f55 100644
--- a/source/lib/debug.c
+++ b/source/lib/debug.c
@@ -477,8 +477,9 @@ BOOL dbghdr( int level, char *file, char *func, int line )
return( True );
/* Print it all out at once. */
- Debug1( "[%s, %d] %s%s%s(%d)\n",
- timestring(), level, file, (*file)?":":"", func, line );
+ if(lp_timestamp_logs())
+ Debug1( "[%s, %d] %s%s%s(%d)\n",
+ timestring(), level, file, (*file)?":":"", func, line );
return( True );
} /* dbghdr */