1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00
Commit Graph

17 Commits

Author SHA1 Message Date
Andrew Tridgell
2ebcfcc6da r15797: fixed a notify bug, where a notify_remove() is beyond the current max
depth
2007-10-10 14:08:21 -05:00
Stefan Metzmacher
a3e1d56cf7 r14964: - move sidmap code from ntvfs_common to SAMDB
- make ntvfs_common a library
- create sys_notify library

metze
2007-10-10 14:00:47 -05:00
Andrew Tridgell
4537de9289 r14960: don't declare variables mid-function 2007-10-10 14:00:46 -05:00
Andrew Tridgell
2a8f093105 r14959: allow change notify to be disabled completely using
notify:enable=False
2007-10-10 14:00:46 -05:00
Andrew Tridgell
16fd00925f r14956: change the notify search to be much more efficient by using a
per-depth bisection search. This makes the notify_trigger() call
log(N) which makes us scale well for large numbers of outstanding
notifies
2007-10-10 14:00:45 -05:00
Stefan Metzmacher
4d7de8b251 r14951: - remove unused var 'path'
- fix compiler warning

metze
2007-10-10 14:00:22 -05:00
Andrew Tridgell
467027e773 r14945: allow the notify backend to be specified per share 2007-10-10 14:00:21 -05:00
Andrew Tridgell
7c3d989fa4 r14920: allow a notify backend to separately specify if it has handled the
given mask for the current directory and sub-directories. This allows
us to setup the less efficient internal handling for subdirectories,
while using the kernel inotify service for the current directory if
available. It also allows inotify to handle only some of the filter
bits, leaving the other filter bits for the user space handler.
2007-10-10 14:00:17 -05:00
Andrew Tridgell
cf17ff15b1 r14918: cleaner handling of systems without inotify 2007-10-10 14:00:16 -05:00
Andrew Tridgell
eadadbb44a r14877: added support for the kernel inotify mechanism. This passes basic
tests, but still needs some more work to ensure we correctly cope with
events that may generate both a system inotify event and a internal
notify event. The system inotify events won't handle recursion, and
don't understand things like streams.

This also adds the ntvfs/sysdep/ directory, which is meant for system
dependent code that is not tied to a particular ntvfs backend. The
inotify code is a good example of that.
2007-10-10 14:00:11 -05:00
Andrew Tridgell
a6be44f78c r14805: use tdb_lock_bystring() to prevent race conditions in notify add/remove 2007-10-10 13:59:21 -05:00
Andrew Tridgell
16742cd286 r14803: copy with the root directory, which has /. on the end of the path 2007-10-10 13:59:21 -05:00
Andrew Tridgell
d09b8761bf r14800: use tdb_get_seqnum() in the change notify code to avoid reloading the
notify record if the tdb has not changed. This makes the
notify_trigger() call much faster, which is important as it is called
on just about every file operation
2007-10-10 13:59:20 -05:00
Andrew Tridgell
1db0a5a7f4 r14797: added checking of the filter in notify requests 2007-10-10 13:59:20 -05:00
Andrew Tridgell
4d234b37e5 r14755: the change notify code now passes most of the RAW-NOTIFY test. Still
more work to do though
2007-10-10 13:59:18 -05:00
Stefan Metzmacher
bac95bb8f4 r14736: - the ntvfs subsystem should not know about smb_server.h
- the process module subsystem should not know about smb_server.h
- the smb_server module should not know about process models

metze
2007-10-10 13:59:17 -05:00
Andrew Tridgell
1624ea88e6 r14616: added notify change support to the posix backend
It doesn't fully work yet, and doesn't yet have all the efficiency
that is planned, but it doesn't break anything and I wanted to get the
code in the tree to minimise the chance of collisions with the work
metze is doing.
2007-10-10 13:59:02 -05:00