s3: OneFS implementation of change notify
authorSteven Danneman <steven.danneman@isilon.com>
Fri, 20 Feb 2009 21:25:17 +0000 (13:25 -0800)
committerSteven Danneman <steven.danneman@isilon.com>
Fri, 20 Feb 2009 22:10:31 +0000 (14:10 -0800)
commit5bd7f9c61bb2fea1867ac6657c9b30799ba49d8f
tree22b4886f9e187a6c7382b77a9358242cf2f20684
parent9a90cbea83548bffb224151a24005cb916f238f5
s3: OneFS implementation of change notify

The OneFS Samba implementation of change notify is modeled after the
usage of Linux's inotify kernel subsystem.  A single call is made
into the onefs.so VFS module to initialize kernel tracking of certain
file change events.  When these events occur a kernel notification is
sent to smbd and the notification event is translated and given to the
general Samba Change Notify layer through a callback function.

The most difficult aspect is converting an SMB CompletionFilter to
a matching ifs_event mask, and then back to an appropriate change
notify action.  Currently, not all possible cases are handled by the
this module, but the most prevalent ones, which are tested by
smbtorture, are implemented.
source3/Makefile.in
source3/modules/onefs.h
source3/modules/onefs_notify.c [new file with mode: 0644]
source3/modules/vfs_onefs.c