1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

203 Commits

Author SHA1 Message Date
Volker Lendecke
a80732cf00 r20983: Two no-mem error returns
(This used to be commit 79a0cd3a1bbd3d4ef0c335f398fa8bb8e82c8624)
2007-10-10 14:44:17 -05:00
Volker Lendecke
67f494d72a r20972: "private" -> "private_data"
(This used to be commit 8cbcd3d1cbb0661b1767bb7ace0804cf9a573e34)
2007-10-10 14:44:05 -05:00
Andrew Tridgell
87df5a6312 r20947: fixed a bug in the unlock logic in the brlock tdb backend
I'm very surprised this didn't show up earlier!
(This used to be commit 5d9b1acf4f35d11c4730cbc9cadedb33c6ec08e8)
2007-10-10 14:43:59 -05:00
Andrew Tridgell
2ad79af331 r20920: use cluster_tdb_tmp_open() in ntvfs backend code
(This used to be commit c9080c54872f107d1e42e77261df50a5d55d294f)
2007-10-10 14:43:52 -05:00
Stefan Metzmacher
c30b82c3ea r20899: fix the build and compiler warnings
metze
(This used to be commit eec93720aced2b4cdad9f6f5a4f6e23587128357)
2007-10-10 14:43:49 -05:00
Stefan Metzmacher
f40182cb12 r20897: fix compiler warnings
metze
(This used to be commit 5ac562e1e0e8de03c8bcd083a1822b31667c5e21)
2007-10-10 14:43:48 -05:00
Andrew Tridgell
72316674bf r20894: the new brlock.c is needed (seems a svn rename + new file didn't make
it in one commit)
(This used to be commit 3315e877ab6504569e2869b52d989fc821982a3b)
2007-10-10 14:43:47 -05:00
Andrew Tridgell
be05a5ca25 r20891: enable multiple brlock backends. The tdb backend is the default. The
prototype ctdb backend is in cluster/ctdb/brlock_ctdb.c
(This used to be commit 84d0e5316299931dc26f2a7b86962d2fffcc4b71)
2007-10-10 14:43:46 -05:00
Volker Lendecke
98ac70b6a3 r20653: If this is the wrong way to fix the build, I apologize. But these includes are
necessary in my environment to get through make.

Volker
(This used to be commit 47e80da39f27a7e7aa6f85d6333f2d1772292ec9)
2007-10-10 14:37:27 -05:00
Andrew Tridgell
1cd4339b9a r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa991d57d68c6ebe9be608e01c907102eb)
2007-10-10 14:37:23 -05:00
Andrew Tridgell
af870da619 r19428: moved tdbutil.c from lib/tdb/common/ to lib/util/util_tdb.c
tdbutil.c is Samba specific, so should not be part of the generic tdb
library
(This used to be commit 979dd24f5e44605fc1603b690913b8c31be7478f)
2007-10-10 14:21:30 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10 14:16:54 -05:00
Simo Sorce
9c66f601f1 r17206: Add a modular API for share configuration.
Commit the classic backwards compatible module which is the default one
(This used to be commit a89cc346b9296cb49929898d257a064a6c2bae86)
2007-10-10 14:10:18 -05:00
Andrew Tridgell
971d30bb20 r15854: more talloc_set_destructor() typesafe fixes
(This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
2007-10-10 14:08:32 -05:00
Andrew Tridgell
225d6485eb r15797: fixed a notify bug, where a notify_remove() is beyond the current max
depth
(This used to be commit 2ebcfcc6dadd4a420431c733bb12fe7719057fd6)
2007-10-10 14:08:21 -05:00
Stefan Metzmacher
9ef33f5f5c r15734: This is a major change to the NTVFS subsystem:
- to use a struct ntvfs_handle instead of a uint16_t fnum.
  (to make it independend from the frontend protocol)
- the allocation of handles now is provided by the frontend
  (smbsrv_*) via callbacks and not by each backend module
- this also makes sure that file handles are only passed
  to the ntvfs subsystem when the tcon and session matches,
  so modules can rely on this and need to check this.
- this allows multiple modules in the ntvfs module chain
  to allocate file handles. This can be used for virtual
  files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"...
- also this will make SMB2 with 128 bit file handles possible

metze
(This used to be commit 287fc1c22d670f6e568014b420f7f4cb31dc7958)
2007-10-10 14:08:10 -05:00
Stefan Metzmacher
5e6d1ea261 r15614: the byte range locking error handling caches the last failed lock
per file handle and not per tree connect

metze
(This used to be commit 5d825261c0b8341f0a7f0f6d96d83807352566f4)
2007-10-10 14:07:00 -05:00
Stefan Metzmacher
be0bd9fa33 r15613: the snum doesn't identify the tcon, but the brl_context pointer does
metze
(This used to be commit 5e256f4b78441269de2e53c9582f3237e4220f6c)
2007-10-10 14:07:00 -05:00
Stefan Metzmacher
8dbffb37d5 r15612: look at the lock_type and not at the notify_ptr being NULL or not
metze
(This used to be commit 7fa6d736913af2d1d2215ca1a04ed8763ccb3d45)
2007-10-10 14:06:59 -05:00
Jelmer Vernooij
e002300f23 r15328: Move some functions around, remove dependencies.
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
(This used to be commit c19c2b51d3e1ad347120b06a22bda5ec586c22e8)
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6da256f104abed1b82bfde6998a2ac9)
2007-10-10 14:04:18 -05:00
Andrew Tridgell
289911bb4e 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.
(This used to be commit ba0b8a218dfe1ef6cdf7de724fb30650301369dd)
2007-10-10 14:04:03 -05:00
Jelmer Vernooij
fd4a8ad8c3 r14993: Make subsystems again
(This used to be commit d55b040bd280c86423f2a620dfc0341accb23cc4)
2007-10-10 14:00:52 -05:00
Stefan Metzmacher
7672505c72 r14966: make more functions _PUBLIC_
metze
(This used to be commit 193f7da254cce40ab30fda9e99b8cd07e0b0a0a8)
2007-10-10 14:00:47 -05:00
Stefan Metzmacher
2e894625e7 r14964: - move sidmap code from ntvfs_common to SAMDB
- make ntvfs_common a library
- create sys_notify library

metze
(This used to be commit a3e1d56cf7b688c515f5d6d4d43e0b24c2261d15)
2007-10-10 14:00:47 -05:00
Andrew Tridgell
26c9cd6211 r14960: don't declare variables mid-function
(This used to be commit 4537de9289ce025a240fe46a708434c195138d20)
2007-10-10 14:00:46 -05:00
Andrew Tridgell
cd794e79f9 r14959: allow change notify to be disabled completely using
notify:enable=False
(This used to be commit 2a8f093105f3047a3697f29aadcc9c48c6ac88e1)
2007-10-10 14:00:46 -05:00
Andrew Tridgell
127967334f 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
(This used to be commit 16fd00925fdbf77e7a403ad501bf6ea429404c76)
2007-10-10 14:00:45 -05:00
Stefan Metzmacher
317c4b81a5 r14951: - remove unused var 'path'
- fix compiler warning

metze
(This used to be commit 4d7de8b251e006a469adf2793dae422e128844c5)
2007-10-10 14:00:22 -05:00
Andrew Tridgell
fa91368fb4 r14945: allow the notify backend to be specified per share
(This used to be commit 467027e7730a3bc56f152df7e2ec272905e19584)
2007-10-10 14:00:21 -05:00
Stefan Metzmacher
115acb5dd0 r14939: don't use a void pointer
metze
(This used to be commit 03906b2b13c000ad9683f6bb1e336075655e1367)
2007-10-10 14:00:20 -05:00
Andrew Tridgell
416d7b4210 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.
(This used to be commit 7c3d989fa44c7f57853a825337159f476d7dff80)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
a9cb173f76 r14918: cleaner handling of systems without inotify
(This used to be commit cf17ff15b15942f0ce068dd0a94b3b565a9b93cb)
2007-10-10 14:00:16 -05:00
Andrew Tridgell
6d98076c15 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.
(This used to be commit eadadbb44adb3c4081d6ff1d85a9b850a0227059)
2007-10-10 14:00:11 -05:00
Stefan Metzmacher
1af925f394 r14860: create libcli/security/security.h
metze
(This used to be commit 9ec706238c173992dc938d537bdf1103bf519dbf)
2007-10-10 13:59:44 -05:00
Andrew Tridgell
05c53f70f0 r14838: fix the build. Looks like I still haven't quite got the hang of the
new dependency/proto system :-)
(This used to be commit 63ae3f21e3471895ba83df1c2fdc4147090f7fdb)
2007-10-10 13:59:25 -05:00
Andrew Tridgell
07372df2fa r14835: split out the config rules for the ntvfs/common/ directory
(This used to be commit 33495d19cf0263f6df5ec935f51c68bde84b1d01)
2007-10-10 13:59:24 -05:00
Stefan Metzmacher
96b5dd789b r14822: if we use the snum used by the lp_* functions instead of the wire TID,
then don't use tid as name...

metze
(This used to be commit d41d48caf209fec9f5f04d38d75277b1cfeed22f)
2007-10-10 13:59:24 -05:00
Andrew Tridgell
6942d1d62c r14805: use tdb_lock_bystring() to prevent race conditions in notify add/remove
(This used to be commit a6be44f78ca2eaecbf0b6d8598addba5a11ae966)
2007-10-10 13:59:21 -05:00
Andrew Tridgell
aec7f3ae72 r14803: copy with the root directory, which has /. on the end of the path
(This used to be commit 16742cd28621d205f21c855e5635be1dfc3f2b69)
2007-10-10 13:59:21 -05:00
Andrew Tridgell
24bacd1113 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
(This used to be commit d09b8761bfda7dfbb4c7a5c4a4f4359ba01923a3)
2007-10-10 13:59:20 -05:00
Andrew Tridgell
ed3fc62871 r14797: added checking of the filter in notify requests
(This used to be commit 1db0a5a7f4c1ff915d91bc15d8e40cc90a78961d)
2007-10-10 13:59:20 -05:00
Andrew Tridgell
57bde8631f r14755: the change notify code now passes most of the RAW-NOTIFY test. Still
more work to do though
(This used to be commit 4d234b37e528137b5c00f6bbb84c2d6939fea324)
2007-10-10 13:59:18 -05:00
Stefan Metzmacher
ad06a8bd65 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
(This used to be commit bac95bb8f4ad35a31ee666f5916ff9b2f292d964)
2007-10-10 13:59:17 -05:00
Andrew Tridgell
3434cd778c 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.
(This used to be commit 1624ea88e6eef89caacc36e7513aa79df0d579b9)
2007-10-10 13:59:02 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10 13:57:27 -05:00
Jelmer Vernooij
4ac2be9958 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
(This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
2007-10-10 13:52:24 -05:00
Andrew Tridgell
40a8d58551 r13739: a fairly major overhaul of the opendb code to allow the BASE-DELETE
test to pass. To try to make the code a bit more understandable, I
moved to using an IDL description of the opendb tdb record format.

One of the larger changes was to make directory opens and creates go
via the opendb code, so directory operations now obey all the share
mode restrictions, as well as delete on close semantics. I also
changed the period over which the opendb locks are held, to try to
minimise races due to two open operations happening at the same time.
(This used to be commit cd2602d05725e1734b0862131dd91601c6b6d51a)
2007-10-10 13:52:08 -05:00
Stefan Metzmacher
6236e5cabc r13708: fix compiler warnings
metze
(This used to be commit 830c42afda70c616ccd32703c6e7c47f38c2271c)
2007-10-10 13:52:06 -05:00
Andrew Tridgell
04cf19bd59 r13701: removed some unnecessary casts
(This used to be commit f7d0ac936380102e087d4b7c336d7feb68b62314)
2007-10-10 13:52:06 -05:00