From 843432d56f9114a4d0d3021a772953dc5a1193dd Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Apr 2012 14:51:43 +0200 Subject: s3: New notify implementation From notify_internal.c: /* * The notify database is split up into two databases: One * relatively static index db and the real notify db with the * volatile entries. */ This change is necessary to make notify scale better in a cluster --- librpc/idl/notify.idl | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'librpc') diff --git a/librpc/idl/notify.idl b/librpc/idl/notify.idl index 845010601e..ec81e8c64a 100644 --- a/librpc/idl/notify.idl +++ b/librpc/idl/notify.idl @@ -32,6 +32,13 @@ interface notify notify_entry entries[num_entries]; } notify_entry_array; + typedef [public] struct { + server_id server; + uint32 filter; /* filter to apply in this directory */ + uint32 subdir_filter; /* filter to apply in child directories */ + pointer private_data; + } notify_db_entry; + /* to allow for efficient search for matching entries, we divide them by the directory depth, with a separate array @@ -62,6 +69,12 @@ interface notify pointer private_data; } notify_event; + typedef [public] struct { + uint32 action; + uint32 filter; + utf8string path; + } notify_remote_event; + typedef [v1_enum] enum { FILE_ACTION_ADDED = 0x00000001, FILE_ACTION_REMOVED = 0x00000002, -- cgit