svn commit: samba r18370 - in
branches/SAMBA_4_0/source/ntvfs/sysdep: .
tridge at samba.org
tridge at samba.org
Mon Sep 11 07:56:25 GMT 2006
Author: tridge
Date: 2006-09-11 07:56:23 +0000 (Mon, 11 Sep 2006)
New Revision: 18370
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18370
Log:
allow system inotify to be disabled
Modified:
branches/SAMBA_4_0/source/ntvfs/sysdep/inotify.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/sysdep/inotify.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/sysdep/inotify.c 2006-09-11 07:55:51 UTC (rev 18369)
+++ branches/SAMBA_4_0/source/ntvfs/sysdep/inotify.c 2006-09-11 07:56:23 UTC (rev 18370)
@@ -253,6 +253,10 @@
{
struct inotify_private *in;
+ if (!lp_parm_bool(-1, "notify", "inotify", True)) {
+ return NT_STATUS_INVALID_SYSTEM_SERVICE;
+ }
+
in = talloc(ctx, struct inotify_private);
NT_STATUS_HAVE_NO_MEMORY(in);
in->fd = inotify_init();
More information about the samba-cvs
mailing list