James Peach
7e4ad7e8e5
r15186: Introduce ISDOT and ISDOTDOT macros for testing whether a filename is
...
"." for "..". These express the intention better that strcmp or strequal
and improve searchability via cscope/ctags.
2007-10-10 14:04:14 -05:00
James Peach
95eb558063
r15185: Force all NTVFS modules to provide a critical sizes structure so
...
the version information can be checked when modules are registered.
2007-10-10 14:04:14 -05:00
James Peach
bf946e6d6d
r15184: Declare ntvfs_register with a typed ops pointer.
2007-10-10 14:04:14 -05:00
James Peach
7ced96d2d3
r15183: Hoist the critical sizes initialiser into a header so that modules
...
can have standard access to critical sizes. Add a convenience function
to determine whether two critical sizes differ.
2007-10-10 14:04:13 -05:00
Stefan Metzmacher
46b3096d93
r15118: - do access checks also when the owner and group are not changed
...
- only call chown/fchown when we want to change something
metze
2007-10-10 14:04:10 -05:00
Stefan Metzmacher
d76f3e2fb6
r15117: add more comments
...
metze
2007-10-10 14:04:09 -05:00
Stefan Metzmacher
bd2c899d83
r15078: add TODO about setting the full ACL with an NTTRANS_CREATE
...
metze
2007-10-10 14:04:07 -05:00
Stefan Metzmacher
fde8922947
r15071: fix typo
...
metze
2007-10-10 14:04:06 -05:00
Stefan Metzmacher
2a61f65cd4
r15069: - don't crash on a NULL acl
...
- add the correct access checks for changing sd->group and sd->dacl
metze
2007-10-10 14:04:06 -05:00
Stefan Metzmacher
ce045f4df3
r15057: fix access masks for getting and setting security_descriptors
...
I'll add some torture tests later...
metze
2007-10-10 14:04:04 -05:00
Stefan Metzmacher
5c1d96b36f
r15056: w2k3 gives NT_STATUS_ACCESS_DENIED instead of NT_STATUS_ACCESS_VIOLATION
...
metze
2007-10-10 14:04:04 -05:00
Andrew Tridgell
ba0b8a218d
r15048: started on the server side implementation of oplocks. The code is not
...
functional yet, I'm committing so it doesn't diverge too much from
other peoples work. It is disabled by default.
2007-10-10 14:04:03 -05:00
Andrew Tridgell
5471b4b1a8
r15029: fixed the detection of inotify
2007-10-10 14:04:02 -05:00
Tim Potter
5e79adda7c
r15017: When making up our own inotify functions, make sure glibc exports the
...
__NR_inotify_* syscall numbers before trying.
2007-10-10 14:04:01 -05:00
Jelmer Vernooij
d55b040bd2
r14993: Make subsystems again
2007-10-10 14:00:52 -05:00
Stefan Metzmacher
4410d7ea5d
r14990: talloc_reference() can fail
...
metze
2007-10-10 14:00:51 -05:00
Stefan Metzmacher
193f7da254
r14966: make more functions _PUBLIC_
...
metze
2007-10-10 14:00:47 -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
dd928e84ec
r14963: check talloc returns
2007-10-10 14:00:47 -05:00
Stefan Metzmacher
c136191870
r14961: fix compiler warning
...
tridge: please add checks after talloc_realloc() and talloc_strdup()!
metze
2007-10-10 14:00:46 -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
b80523a631
r14948: add testing of truncate events, and add truncate support to inotify
...
backend
2007-10-10 14:00:21 -05:00
Andrew Tridgell
ed1b90407d
r14947: add support for file truncate events
2007-10-10 14:00:21 -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
74c274ea07
r14943: bring the inotify backend up to date with all the strange rename
...
semantics
2007-10-10 14:00:20 -05:00
Andrew Tridgell
010a1b14a5
r14941: a rename of a file (but not a directory) triggers 3 events. The first
...
two are the rename (FROM and TO) then the 3rd event is a modify event
of both attributes and creation time.
2007-10-10 14:00:20 -05:00
Stefan Metzmacher
03906b2b13
r14939: don't use a void pointer
...
metze
2007-10-10 14:00:20 -05:00
Andrew Tridgell
4d3b8d9549
r14933: fix the handling of notify filters to be much closer to the behaviour
...
of w2k3. The behaviour is particularly tricky for rename.
2007-10-10 14:00:19 -05:00
Andrew Tridgell
d58011b0f3
r14932: ensure that we send a NOTIFY_ACTION_OLD_NAME and
...
NOTIFY_ACTION_NEW_NAME together to the client.
2007-10-10 14:00:18 -05:00
Andrew Tridgell
b6e40d9b08
r14928: demonstrate that the completion filter is only set on the first notify
...
on a directory handle
2007-10-10 14:00:18 -05:00
Andrew Tridgell
13574a8d0c
r14926: change the inotify backend to implement the rather unusual semantics
...
for rename. The cookies in inotify tell us (indirectly!) if its a
rename between directories or not
2007-10-10 14:00:17 -05:00
Andrew Tridgell
2ac248edf0
r14925: trigger NOTIFY_ACTION_OLD_NAME and NOTIFY_ACTION_NEW_NAME events for
...
renames, if in the same directory. For renames between directories
generate NOTIFY_ACTION_REMOVED and NOTIFY_ACTION_ADDED
2007-10-10 14:00:17 -05:00
Andrew Tridgell
ceb85d12f7
r14924: when handling recursive change notify, the client expects a windows
...
path name back
2007-10-10 14:00:17 -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
Stefan Metzmacher
953aa7887b
r14912: don't crash if inotify isn't present...
...
metze
2007-10-10 14:00:15 -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
Stefan Metzmacher
9ec706238c
r14860: create libcli/security/security.h
...
metze
2007-10-10 13:59:44 -05:00
Andrew Tridgell
63ae3f21e3
r14838: fix the build. Looks like I still haven't quite got the hang of the
...
new dependency/proto system :-)
2007-10-10 13:59:25 -05:00
Andrew Tridgell
33495d19cf
r14835: split out the config rules for the ntvfs/common/ directory
2007-10-10 13:59:24 -05:00
Stefan Metzmacher
d41d48caf2
r14822: if we use the snum used by the lp_* functions instead of the wire TID,
...
then don't use tid as name...
metze
2007-10-10 13:59:24 -05:00
Andrew Tridgell
adb4ea32e2
r14808: added notify_trigger() calls for rename and setfileinfo calls
2007-10-10 13:59:22 -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
a4c0e23f9d
r14796: handle overflows in the notify buffer. The pending events are dumped
...
and the notify buffer removed
2007-10-10 13:59:19 -05:00