diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-04-06 10:12:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:21 -0500 |
commit | fa91368fb4ea2c31f6e1b1037f1bd16ef9f3ba98 (patch) | |
tree | 758af5a0d6fb1cb06cb9a5e83041fd9ebb3b20bc /source4/ntvfs | |
parent | 6c0daa4bdeb50b42442964fd20626452dcc1b7d8 (diff) | |
download | samba-fa91368fb4ea2c31f6e1b1037f1bd16ef9f3ba98.tar.gz samba-fa91368fb4ea2c31f6e1b1037f1bd16ef9f3ba98.tar.bz2 samba-fa91368fb4ea2c31f6e1b1037f1bd16ef9f3ba98.zip |
r14945: allow the notify backend to be specified per share
(This used to be commit 467027e7730a3bc56f152df7e2ec272905e19584)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/common/notify.c | 4 | ||||
-rw-r--r-- | source4/ntvfs/posix/vfs_posix.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/source4/ntvfs/common/notify.c b/source4/ntvfs/common/notify.c index e0d48d2b80..a1f7e80119 100644 --- a/source4/ntvfs/common/notify.c +++ b/source4/ntvfs/common/notify.c @@ -77,7 +77,7 @@ static int notify_destructor(void *p) */ 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 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, uint32_t server, 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; } diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c index c0c1d6501c..3e141219f4 100644 --- a/source4/ntvfs/posix/vfs_posix.c +++ b/source4/ntvfs/posix/vfs_posix.c @@ -188,7 +188,8 @@ static NTSTATUS pvfs_connect(struct ntvfs_module_context *ntvfs, 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; } |