summaryrefslogtreecommitdiffstats
path: root/source/smbd/notify_hash.c
Commit message (Collapse)AuthorAgeFilesLines
* Optimization (noticed by bloody Andrew :-) to stop directory scan everJeremy Allison2000-09-211-4/+15
| | | | | being done if any of the directory timestamps were changed. Jeremy.
* Fix to allow a timestamp of zero to cause an instantaneous changenotifyJeremy Allison2000-09-201-3/+6
| | | | | | scan - then call this from renames. This allows instantaneous update for W2k renames. Jeremy.
* allow the notify implementation to choose the select timeout changeAndrew Tridgell2000-06-141-0/+1
|
* totally rewrote the async signal, notification and oplock notificationAndrew Tridgell2000-06-121-0/+184
handling in Samba. This was needed due to several limitations and races in the previous code - as a side effect the new code is much cleaner :) in summary: - changed sys_select() to avoid a signal/select race condition. It is a rare race but once we have signals doing notification and oplocks it is important. - changed our main processing loop to take advantage of the new sys_select semantics - split the notify code into implementaion dependent and general parts. Added the following structure that defines an implementation: struct cnotify_fns { void * (*register_notify)(connection_struct *conn, char *path, uint32 flags); BOOL (*check_notify)(connection_struct *conn, uint16 vuid, char *path, uint32 flags, void *data, time_t t); void (*remove_notify)(void *data); }; then I wrote two implementations, one using hash/poll (like our old code) and the other using the new Linux kernel change notify. It should be easy to add other change notify implementations by creating a sructure of the above type. - fixed a bug in change notify where we were returning the wrong error code. - rewrote the core change notify code to be much simpler - moved to real-time signals for leases and change notify Amazingly, it all seems to work. I was very surprised!