*/
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;
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;
}
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;
}