svn commit: samba r14945 - in branches/SAMBA_4_0/source/ntvfs: common posix

tridge at samba.org tridge at samba.org
Thu Apr 6 10:12:37 GMT 2006


Author: tridge
Date: 2006-04-06 10:12:36 +0000 (Thu, 06 Apr 2006)
New Revision: 14945

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14945

Log:

allow the notify backend to be specified per share

Modified:
   branches/SAMBA_4_0/source/ntvfs/common/notify.c
   branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/common/notify.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/common/notify.c	2006-04-06 10:09:09 UTC (rev 14944)
+++ branches/SAMBA_4_0/source/ntvfs/common/notify.c	2006-04-06 10:12:36 UTC (rev 14945)
@@ -77,7 +77,7 @@
 */
 struct notify_context *notify_init(TALLOC_CTX *mem_ctx, uint32_t server, 
 				   struct messaging_context *messaging_ctx,
-				   struct event_context *ev)
+				   struct event_context *ev, int snum)
 {
 	char *path;
 	struct notify_context *notify;
@@ -110,7 +110,7 @@
 	messaging_register(notify->messaging_ctx, notify, 
 			   MSG_PVFS_NOTIFY, notify_handler);
 
-	notify->sys_notify_ctx = sys_notify_init(-1, notify, ev);
+	notify->sys_notify_ctx = sys_notify_init(snum, notify, ev);
 
 	return notify;
 }

Modified: branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c	2006-04-06 10:09:09 UTC (rev 14944)
+++ branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c	2006-04-06 10:12:36 UTC (rev 14945)
@@ -188,7 +188,8 @@
 	pvfs->notify_context = notify_init(pvfs, 
 					   pvfs->ntvfs->ctx->server_id,  
 					   pvfs->ntvfs->ctx->msg_ctx, 
-					   event_context_find(pvfs));
+					   event_context_find(pvfs),
+					   pvfs->ntvfs->ctx->config.snum);
 	if (pvfs->notify_context == NULL) {
 		return NT_STATUS_INTERNAL_DB_CORRUPTION;
 	}



More information about the samba-cvs mailing list