Stefan Metzmacher
98dafd5eb1
opendb: add odb_get_path()
...
metze
(This used to be commit 02071f151a
)
2008-02-29 15:17:52 +01:00
Stefan Metzmacher
bc1b595555
opendb: only return delete_on_close on odb_get_delete_on_close()
...
metze
(This used to be commit e699633db2
)
2008-02-28 08:11:04 +01:00
Stefan Metzmacher
85d58175c8
opendb: return the path that should be deleted in odb_close_file()
...
That means the last close returns the path name if the
delete_on_close flag is set.
metze
(This used to be commit fc27730bad
)
2008-02-28 08:10:50 +01:00
Stefan Metzmacher
7264a8b7ca
opendb: unify the parameters of odb_open_file() and odb_can_open()
...
metze
(This used to be commit e6b708a52b
)
2008-02-26 09:32:56 +01:00
Stefan Metzmacher
facdc472c7
opendb: pass down open_disposition and break_to_none to odb_open_file()
...
metze
(This used to be commit aaaa26ae5e
)
2008-02-26 09:32:55 +01:00
Stefan Metzmacher
f94008e45a
opendb: add odb_break_oplocks() function
...
This send breaks to none to all level2 holders
metze
(This used to be commit bd3654500b
)
2008-02-26 09:29:40 +01:00
Stefan Metzmacher
71943b209b
opendb: add odb_update_oplock() call
...
metze
(This used to be commit df576d69c6
)
2008-02-25 11:51:17 +01:00
Stefan Metzmacher
27e322bb4d
opendb: add odb_get_key() function to get the key back from a struct odb_lock
...
metze
(This used to be commit 11f35a2a4d
)
2008-02-25 11:50:30 +01:00
Jelmer Vernooij
ff0315ba85
Rename include to mkinclude to emphasize it is different from make's include.
...
(This used to be commit 0e1d0a874a
)
2008-02-18 20:04:18 +01:00
Andrew Bartlett
7e15e09f67
Fix a few more breakages from our recent changes to the server_id
...
structure. The BASE-TORTURE test found this problem - caused because
the messaging path was not unique.
If we didn't use a macro for cluster_id_equal(), we could make it
opaque, and avoid this...
Andrew Bartlett
(This used to be commit c3387545c5
)
2008-02-04 23:04:35 +11:00
Andrew Bartlett
77f71c1b65
Rework cluster_id() to take an additional argument, as we need
...
<node>.<pid>.<fd> to be unique in a prefork process environment.
Andrew Bartlett and David Disseldorp
(This used to be commit 931994a7f1
)
2008-02-04 17:51:38 +11:00
Jelmer Vernooij
dc8ccffed4
r26653: Janitorial: Remove global_loadparm use in two more places.
...
(This used to be commit 65fbb4700d
)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
40acf23a92
r26645: Janitorial: Fix a couple of warnings.
...
(This used to be commit a2bc97e8b0
)
2008-01-02 12:48:03 -06:00
Jelmer Vernooij
9d136bc0a3
r26640: Janitorial: Remove some more uses of global_loadparm.
...
(This used to be commit c863f4ebde
)
2008-01-01 19:57:01 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07
)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
86dc05e99f
r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
...
(This used to be commit 61ad78ac98
)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
0500b87092
r26540: Revert my previous commit after concerns raised by Andrew.
...
(This used to be commit 6ac86f8be7
)
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
3e75f222bc
r26539: Remove unnecessary statics.
...
(This used to be commit e53e79eebe
)
2007-12-21 05:52:05 +01:00
Jelmer Vernooij
61873ce94c
r26431: Require ndr_push creators to specify a iconv_convenience context.
...
(This used to be commit 7352206f44
)
2007-12-21 05:50:00 +01:00
Jelmer Vernooij
7f0e8252e7
r26379: Remove more global_loadparm instances.
...
(This used to be commit b6f66eb5e0
)
2007-12-21 05:49:13 +01:00
Jelmer Vernooij
fc2f06d31b
r26274: Some syntax fixes, remove more global_loadparm instances.
...
(This used to be commit 3809113d86
)
2007-12-21 05:47:58 +01:00
Jelmer Vernooij
5b357ca877
r26270: Require specifying the loadparm_context or NULL to cli_credentials_guess().
...
(This used to be commit e52710d679
)
2007-12-21 05:47:50 +01:00
Jelmer Vernooij
0184e5ef2d
r26269: Fix a couple more references to global_loadparm.
...
(This used to be commit 1cb849dfba
)
2007-12-21 05:47:49 +01:00
Jelmer Vernooij
01bacaecd1
r26101: remove some unused includes
...
(This used to be commit bc615162fc
)
2007-12-21 05:46:03 +01:00
Stefan Metzmacher
114691cf14
r26015: fix dependecies
...
metze
(This used to be commit 29b6a8739a
)
2007-12-21 05:45:42 +01:00
Jelmer Vernooij
ca0b72a1fd
r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
...
(This used to be commit 56dfcb4f2f
)
2007-12-21 05:45:40 +01:00
Stefan Metzmacher
529763a9aa
r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
...
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/
metze
(This used to be commit 6223c7fddc
)
2007-12-21 05:45:02 +01:00
Jelmer Vernooij
05e7c48146
r25553: Convert to standard bool type.
...
(This used to be commit b7371f1a19
)
2007-10-10 15:07:54 -05:00
Jelmer Vernooij
2f3551ca7c
r25446: Merge some changes I made on the way home from SFO:
...
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77
)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9
)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
9b009c9009
r25301: Merge my includes.h cleanups.
...
(This used to be commit 37425495f3
)
2007-10-10 15:07:09 -05:00
Jelmer Vernooij
98b57d5eb6
r25035: Fix some more warnings, use service pointer rather than service number in more places.
...
(This used to be commit df9cebcb97
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
dccf3f99e4
r25027: Fix more warnings.
...
(This used to be commit 5085c53fcf
)
2007-10-10 15:05:41 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
cd962355ab
r25000: Fix some more C++ compatibility warnings.
...
(This used to be commit 08bb1ef643
)
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
61ffa08f4c
r24712: No longer expose the 'BOOL' data type in any interfaces.
...
(This used to be commit 1ce32673d9
)
2007-10-10 15:02:54 -05:00
Andrew Tridgell
2119b7dff0
r24644: add a ctdb_fetch() function to the ctdb client code
...
(This used to be commit 1aa4628f16
)
2007-10-10 15:02:30 -05:00
Andrew Tridgell
a87df7009e
r24643: add a ctdb_fetch() function to the ctdb client code
...
(This used to be commit 5705ee0449
)
2007-10-10 15:02:29 -05:00
Andrew Tridgell
7ee3cbd9eb
r24275: - setup the connection to the ctdb daemon
...
- disable the brlock ctdb backend for now
(This used to be commit b04bcf46e1
)
2007-10-10 15:01:34 -05:00
Andrew Tridgell
b7b3e3e0d4
r24274: - merge from ctdb bzr tree
...
- use ctdb_attach() instead of ctdb_db_handle()
- make ctdb_attach() return an existing db handle if it exists
(This used to be commit be85c48f8d
)
2007-10-10 15:01:33 -05:00
Andrew Tridgell
6504900f1f
r23806: update Samba4 with the latest ctdb code.
...
This doesn't get the ctdb code fully working in Samba4, it just gets
it building and not breaking non-clustered use of Samba. It will take
a bit longer to update some of the calling ctdb_cluster.c code to make
it work correctly in Samba4.
Note also that Samba4 now only links to the client portion of
ctdb. For the moment I am leaving the ctdbd as a separate daemon,
which you install separately from http://ctdb.samba.org/ .
(This used to be commit b196077cbb
)
2007-10-10 14:59:20 -05:00
Andrew Tridgell
d4e2d157cb
r23805: this directory is not used any more
...
(This used to be commit 3121f91493
)
2007-10-10 14:59:19 -05:00
Andrew Tridgell
cd1217ff5f
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
...
(This used to be commit 5c9b19271e
)
2007-10-10 14:59:18 -05:00
Andrew Tridgell
e1c15c74af
r23799: updated old Franklin Street FSF addresses to new URL
...
(This used to be commit db92b76a00
)
2007-10-10 14:59:16 -05:00
Andrew Tridgell
6c973f4e8c
r23798: updated old Temple Place FSF addresses to new URL
...
(This used to be commit 40c0919aaa
)
2007-10-10 14:59:15 -05:00
Andrew Tridgell
b8d69a7ea2
r23795: more v2->v3 conversion
...
(This used to be commit 84b468b2f8
)
2007-10-10 14:59:14 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Jelmer Vernooij
c2781df0d5
r23289: Provide support for GCC attributes _PURE_, _NONNULL_, _DEPRECATED_, _NORETURN_ and _WARN_UNUSED_RESULT_.
...
(This used to be commit 44248f662f
)
2007-10-10 14:53:08 -05:00
Stefan Metzmacher
0543c06d25
r22863: in SMB2 mode we always need to return NT_STATUS_LOCK_NOT_GRANTED
...
metze
(This used to be commit 83a61a2892
)
2007-10-10 14:52:25 -05:00
Andrew Tridgell
b17445950e
r22423: don't need popt here
...
(This used to be commit fd8594d62e
)
2007-10-10 14:51:18 -05:00
Andrew Tridgell
650d81b252
r22421: merged in latest ctdb changes from bzr
...
(This used to be commit 3633f862b9
)
2007-10-10 14:51:17 -05:00
Andrew Tridgell
0ea0b01ea2
r22237: this init fn doesn't exist yet
...
(This used to be commit 6d9d62dca3
)
2007-10-10 14:50:44 -05:00
Andrew Tridgell
e24cf89288
r22234: merge test suite changes from bzr tree
...
(This used to be commit d825f4e6cc
)
2007-10-10 14:50:41 -05:00
Andrew Tridgell
71c5586d30
r22232: add a special message handler ID meaning "all messages please"
...
This better fits the way Samba4 does message dispatch
(This used to be commit 2c12f8e72f
)
2007-10-10 14:50:40 -05:00
Andrew Tridgell
c9f04d8648
r22231: merge from bzr ctdb tree
...
(This used to be commit 807b959082
)
2007-10-10 14:50:40 -05:00
Andrew Tridgell
5497a1341c
r22117: merged from bzr
...
(This used to be commit d7f122df1d
)
2007-10-10 14:49:52 -05:00
Andrew Tridgell
1b02e88aaf
r22114: merge from bzr tree
...
(This used to be commit e60a485ff5
)
2007-10-10 14:49:51 -05:00
Andrew Tridgell
a9044f92c9
r22098: merged from bzr tree
...
(This used to be commit a57af1ff82
)
2007-10-10 14:49:51 -05:00
Andrew Tridgell
eb94925e37
r22085: correct copyright on opendb_ctdb.c
...
(This used to be commit 43ee3f8724
)
2007-10-10 14:49:49 -05:00
Andrew Tridgell
23508a7c86
r22084: use a TDB_INTERNAL tdb for the local ctdb tdb for now
...
(This used to be commit e2fe45cf40
)
2007-10-10 14:49:49 -05:00
Andrew Tridgell
0cbea3104b
r22083: opendb backend to ctdb now passes simple tests
...
(This used to be commit 141bd7ac39
)
2007-10-10 14:49:49 -05:00
Andrew Tridgell
66156220eb
r22082: merged the ctdb changes from bzr
...
added opendb ctdb backend from ronnie
(This used to be commit b0da25cb79
)
2007-10-10 14:49:48 -05:00
Andrew Tridgell
b03d49bced
r22072: in order to implement the opendb ctdb backend, I've found that the
...
existing ctdb_call() mechanism isn't sufficient. The main problem is
that the operations on the record need to be done with a lock held
while a local posix file operation is happening. We can't use a
ctdb_call callback function to do the actual file opens, renames,
unlinks etc as the callback would run on the wrong node.
So this commit adds the prototypes for two new ctdb API functions
which will make a opendb backend easier. Volker will probably
recognise these functions as they are basically the same as what he
did in his earlier Samba clustering code :-)
(This used to be commit d9a997fd39
)
2007-10-10 14:49:47 -05:00
Andrew Tridgell
a78be2150b
r22070: merge in the changes from the bzr ctdb tree, and convert the brlock
...
ctdb backend to use the updated multi-database API
(This used to be commit 44dcac9e4d
)
2007-10-10 14:49:47 -05:00
Jelmer Vernooij
bedf53f9e0
r21669: Fix --enable-dso build
...
(This used to be commit 7cf9d07c88
)
2007-10-10 14:49:07 -05:00
Andrew Tridgell
8de4c33d8f
r21256: - msg_type is not needed in the cluster messaging API
...
- merge ctdb_get_num_nodes() from bzr tree
(This used to be commit 3df7527aed
)
2007-10-10 14:44:55 -05:00
Andrew Tridgell
a2eff69b4b
r21233: first version of samba4 messaging using ctdb is working. This means we
...
should now work on a real cluster, and not just a localhost simulator
(This used to be commit f05072ad74
)
2007-10-10 14:44:50 -05:00
Andrew Tridgell
aa40cc408b
r21232: added a raw ctdb messaging api - allowing ctdb applications to take
...
advantage of the ctdb messaging layer for their own data
(This used to be commit b288ba05e5
)
2007-10-10 14:44:49 -05:00
Andrew Tridgell
07478016d7
r21230: added the hooks needed in the cluster layer and the messaging code for
...
handling messages to remote nodes. Implemented dummy functions in the
'local' cluster backend for the messaging hooks, and modified the
messaging layer to check if the destination is remote and redirect
messages via the cluster layer
(This used to be commit 4474552e8f
)
2007-10-10 14:44:49 -05:00
Andrew Tridgell
80d3b780e5
r21173: - keep the ctdb queue when reconnecting (this will need to be more
...
complex once we have code for changing the number of nodes)
- fixed a ctdb/tcp bug in the handling of multiple packets waiting on
a socket
(This used to be commit faf9a1146c
)
2007-10-10 14:44:41 -05:00
Andrew Tridgell
ef80bc34c1
r21172: fixed a comment
...
(This used to be commit 2d6e082e81
)
2007-10-10 14:44:41 -05:00
Andrew Tridgell
f9e222b5e3
r21140: enable the pending lock notify code in the ctdb backend so that timed
...
locks retry immediately when another blocking lock is removed.
(This used to be commit 169920a534
)
2007-10-10 14:44:33 -05:00
Andrew Tridgell
ef21969819
r21045: every call in brlock_ctdb ended up neededing a 32 bit status code, so
...
rather than allocating a reply_data field each time, I have changed
the ctdb_call API to include a status code. That greatly simplifies
use of the API.
(This used to be commit 70c3acaf88
)
2007-10-10 14:44:25 -05:00
Andrew Tridgell
e46d128bb5
r21044: - merge struct ctdb_call API changes from bzr tree
...
- convert brlock code to new API
(This used to be commit cf317480cb
)
2007-10-10 14:44:25 -05:00
Andrew Tridgell
e7d0d22806
r20991: use relative includes for ctdb headers. This works with both
...
standalone and built-in ctdb
(This used to be commit 3e5f29bddf
)
2007-10-10 14:44:18 -05:00
Andrew Tridgell
69d475223d
r20948: a very simple example on how to setup and test ctdb
...
(This used to be commit 8b5d7d66c9
)
2007-10-10 14:43:59 -05:00
Andrew Tridgell
44b6652e6c
r20946: fixed another couple of bugs in the brlock ctdb backend. It now
...
survives very long random locktest runs.
(This used to be commit 53fd66340a
)
2007-10-10 14:43:58 -05:00
Andrew Tridgell
ae7eab4cfc
r20945: fixed the bug causing locktest to fail with the ctdb backend after a
...
couple of hundred opertations. Also removed a lot of the debug code I
was using to track this down.
(This used to be commit 7622e7b4b2
)
2007-10-10 14:43:58 -05:00
Andrew Tridgell
e04e99585c
r20944: if a call has been destroyed before a reply comes in then discard the
...
reply
(This used to be commit 05d19af38c
)
2007-10-10 14:43:57 -05:00
Andrew Tridgell
4109edc5b6
r20943: use offsetof() instead of sizeof() - 1 for the packet length
...
calculations. It will be interesting to see how portable this is.
The advantage over the sizeof() method is that it avoids padding
problems after the data[1] array. That was causing us to get valgrind
errors.
(This used to be commit fd8e460439
)
2007-10-10 14:43:57 -05:00
Andrew Tridgell
efc68d8bf6
r20919: add a function cluster_tdb_tmp_open() which can be used in a cluster
...
environment for subsystems that have not yet been converted to use
ctdb to get a shared temporary tdb
(This used to be commit 0ed9138449
)
2007-10-10 14:43:52 -05:00
Andrew Tridgell
d1b61b09aa
r20918: a bit more debugging, and remove the hackish /dev/null writes I used
...
to track down some uninitialised memory (sometimes valgrind gets the
offset wrong, writing to /dev/null 1 byte at a time avoids this)
(This used to be commit 4bf741b567
)
2007-10-10 14:43:51 -05:00
Stefan Metzmacher
87f5bed98a
r20901: - not all compiler like uint8_t data[0] elements!
...
- this fix looks really ugly but I don't know a better solution...
if we would use uint8_t *data; then we would send the pointer value
also in the network packet and we would need to initialize
s->data = ((void *)(&s->data) + 1;
to make the memcpy statements work as they're currently,
so we use uint8_t data[1] in the struct definition ...
tridge: please review careful!
hopefully fix the build on solaris and HPUX
metze
(This used to be commit 015097677c
)
2007-10-10 14:43:49 -05:00
Stefan Metzmacher
4c719f82c2
r20900: fix compiler warnings
...
metze
(This used to be commit cb59eae919
)
2007-10-10 14:43:49 -05:00
Andrew Tridgell
faf800d871
r20896: make the maximum lacount configurable in smb.conf
...
at the moment the brlock_ctdb backend will sometimes fail after
dmaster migrations. So to pass tests this needs to be set high. Thats
a priority to fix.
(This used to be commit 45f5c272f3
)
2007-10-10 14:43:48 -05:00
Andrew Tridgell
aa74e5c9c0
r20893: brlock notifies are currently disabled in the ctdb backend. Use a #if
...
instead of c++ comments
(This used to be commit a3beff12a5
)
2007-10-10 14:43:47 -05:00
Andrew Tridgell
2e8a95ced7
r20892: add parameter for enabling ctdb self connect
...
(This used to be commit ba3ce8abe3
)
2007-10-10 14:43:47 -05:00
Andrew Tridgell
5cb78383fa
r20889: import ctdb cluster backend from bzr
...
it will be interesting to see how the build farm handles this
(This used to be commit 53be449630
)
2007-10-10 14:43:46 -05:00
Andrew Tridgell
8c3d15f6ca
r20888: local cluster backend
...
(This used to be commit 5530e6effe
)
2007-10-10 14:43:45 -05:00
Andrew Tridgell
9d8c44af17
r20887: allow the registration of multiple cluster backends
...
this is in preparation for ctdb
(This used to be commit 489f022175
)
2007-10-10 14:43:45 -05:00
Andrew Tridgell
f6274959ba
r20647: add cluster code
...
(This used to be commit 5870830b99
)
2007-10-10 14:37:24 -05:00