summaryrefslogtreecommitdiff
path: root/source4/cluster
AgeCommit message (Collapse)AuthorFilesLines
2013-04-12source4/cluster and source4/ntvfs: convert to dbwrap, add ntdb option.Rusty Russell5-18/+26
This makes the code use dbwrap_local_open(), so it can handle NTDB. brlock.tdb, notify.tdb and openfiles.tdb can now be brlock.ntdb, notify.ntdb and openfiles.ntdb, if 'use ntdb' is set. Cc: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reviewed-by: Jeremy Allison <jra@samba.org>
2012-06-19lib/tdb_wrap: use tdb directly, not tdb_compat.Rusty Russell1-1/+0
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-04-30s4-messaging: Fill in the whole server_id in all use casesAndrew Bartlett1-0/+3
This started per https://bugzilla.samba.org/show_bug.cgi?id=8872#c4 and avoids any possible collision with a different process. We also need to ensure that across a Samba installation on a single node that id.vnn is the same. Samba4 previously used 0, while Samba3 used NONCLUSTER_VNN. When a message is sent between these 'different' nodes, the error NT_STATUS_INVALID_DEVICE_REQUEST is raised. Andrew Bartlett
2012-03-10tdb_wrap: Move to specific directory.Jelmer Vernooij1-1/+1
It's a bit confusing to mix low-level and high-level libraries. We had multiple libraries in one directory, and there were have circular dependencies with other libraries outside that directory (in this case, samba-hostconfig). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
2011-10-13lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett1-1/+1
This passes down a struct loadparm_context to allow these parameters to be checked. This may be s3 or s4 context, allowing the #if _SAMBA_BUILD_ macro to go away safely. Andrew Bartlett
2011-06-20tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell1-1/+1
We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-09lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett4-25/+0
This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
2011-06-09server_id.idl: Bring server_id.idl in commonAndrew Bartlett3-3/+3
Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-09s4-cluster Use task_id instead of id2 to clarify server_id structureAndrew Bartlett3-7/+7
This seems a clearer and more acceptable name. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-05-06lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett1-1/+1
This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett
2011-05-03s4-messaging Rename messaging -> imessagingAndrew Bartlett4-6/+6
This avoid symbol and structure conflicts between Samba3 and Samba4, and chooses a less generic name. Andrew Bartlett
2011-05-03s4-cluster Rename server_id.node -> vnn to match Samba3Andrew Bartlett2-3/+3
2011-05-03s4-cluster: Remove const from cluster_id_string()Andrew Bartlett4-5/+5
This allows the caller to talloc_free() this result. Andrew Bartlett
2011-05-03s4:cluster Rename .id to .pid in server_idAndrew Bartlett2-4/+4
This also changes some DEBUG messages to use cluster_id_string() rather than .id, to isolate them from this and other changes. Andrew Bartlett
2011-02-28Use <tdb.h> to include tdb, so the system include file gets used when ↵Jelmer Vernooij1-1/+1
building against system tdb.
2011-02-18s4-idl: rename s4 server_id.idl to server_id4.idlAndrew Tridgell3-3/+3
this avoids a conflict with the new s3 server_id.idl Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-05s4:cluster/cluster.h - fix another gcc 3.4 "struct" warningMatthias Dieter Wallnöfer1-0/+2
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Dec 5 21:22:18 CET 2010 on sn-devel-104
2010-10-31s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij1-4/+0
The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
2010-10-30s4-cluster: make cluster a private shared libAndrew Tridgell1-4/+5
2010-04-06s4-waf: removed the AUTOGENERATED markersAndrew Tridgell1-4/+0
we won't be using the mk -> wscript generator again
2010-04-06s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell1-0/+2
them
2010-04-06build: commit all the waf build files in the treeAndrew Tridgell1-0/+9
2009-02-02s4:cluster: s/private/private_dataStefan Metzmacher2-2/+2
metze
2008-12-29s4:cluster: fix dependency to TDB_WRAPStefan Metzmacher1-0/+1
metze
2008-12-29s4:cluster: remove old/broken ctdb codeStefan Metzmacher93-28435/+0
We don't need a full copy of ctdb... If we want to readd cluster support, we should just use a ctdb client library. metze
2008-12-23Use 32-bit smbpid in interface as required by SMB2, in line withJelmer Vernooij1-3/+3
1bdd08227e7d046305705050f21f0f1b6dd6994a.
2008-12-17s4: fix LIBEVENTS dependencies and use more forward declarationsStefan Metzmacher5-5/+1
We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
2008-12-16Rename dom_sid.idl -> server_id.idl (since it no longer actually contains ↵Jelmer Vernooij3-3/+3
the dom_sid). No longer include it from security.idl.
2008-10-20Make sure prototypes are always included, make some functions static andJelmer Vernooij1-0/+1
remove some unused functions.
2008-10-15Fix includes.Jelmer Vernooij3-2/+3
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij5-6/+6
2008-09-24Rename smbd -> samba.Jelmer Vernooij1-4/+4
This reverts commit 05ea5e23cf4e70de0bd658b1c5c0ead133967091. Conflicts: source4/smbd/server.c
2008-09-16Fix last few includes to use new tdb location.Jelmer Vernooij2-2/+2
2008-09-16Use single copy of tdb in both samba3 and samba4.Jelmer Vernooij21-21/+21
2008-06-14Use a custom init function for samba4 that sets a samba4Simo Sorce8-8/+8
specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-06-03opendb: add write time handlingStefan Metzmacher1-28/+23
metze (This used to be commit 3868d8ce630c71e2c70aae442fcdbd68ba1eb708)
2008-05-18Use variables for source directory in a couple more places.Jelmer Vernooij2-4/+5
(This used to be commit 2860a7db5968c7007522cdb300eba390da929ab8)
2008-04-17use uintptr_t instead of intptr_t where appropriateAndrew Tridgell1-1/+1
(This used to be commit d62f2bcc85c13605c133db250e0a86d2d6ccc481)
2008-04-14Move object files lists to makefile rather than smb_build.Jelmer Vernooij2-8/+11
(This used to be commit 5628d58990144463fd87f8c847c9384ac2193681)
2008-03-27Fix references to ntvfs share configAndrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 4e4152dfd70145a7a00bc42effcd07b607204926)
2008-03-27Make oplocks a per-share option.Andrew Bartlett1-1/+1
This even goes via the share options system (a very odd layer of indirection). Andrew Bartlett (This used to be commit f2c65f9907760b8852b70c53637388f08751ba88)
2008-03-12opendb: pass down a pointer to the fd in odb_open_file()Stefan Metzmacher1-1/+1
This prepares kernel oplock support. metze (This used to be commit 9db9b6d85d80a8aaa8bd432afaef9bb634d7364d)
2008-03-07opendb: force odb_can_open() before odb_open_file()Stefan Metzmacher1-93/+7
Now there's only odb_can_open() which handles the share_access rules. And odb_open_file() only adds the new opendb_entry into the database and calculates the granted oplock level. metze (This used to be commit db0853ae4fead34ef382bbfcfe2f46453ab8b73b)
2008-03-06opendb: add allow_level_II_oplock parameter to odb_open_file()Stefan Metzmacher1-0/+1
Not all clients support a fallback to level II oplocks. metze (This used to be commit 146f1fe0b67ca0805f0e71358abc57da0c0579a9)
2008-02-29opendb: add odb_get_path()Stefan Metzmacher1-0/+20
metze (This used to be commit 02071f151a22257d31f8a8b254625e2067e7b94d)
2008-02-28opendb: only return delete_on_close on odb_get_delete_on_close()Stefan Metzmacher1-13/+3
metze (This used to be commit e699633db2d377a9077ff490208da277e250239b)
2008-02-28opendb: return the path that should be deleted in odb_close_file()Stefan Metzmacher1-1/+12
That means the last close returns the path name if the delete_on_close flag is set. metze (This used to be commit fc27730bad24e8dddaa2e7f754a16811e38a2f60)
2008-02-26opendb: unify the parameters of odb_open_file() and odb_can_open()Stefan Metzmacher1-3/+4
metze (This used to be commit e6b708a52b0eada3fd374b66292ded3b0f6ce217)
2008-02-26opendb: pass down open_disposition and break_to_none to odb_open_file()Stefan Metzmacher1-5/+7
metze (This used to be commit aaaa26ae5e810495f313dfada771a8de86cedbd4)
2008-02-26opendb: add odb_break_oplocks() functionStefan Metzmacher1-1/+12
This send breaks to none to all level2 holders metze (This used to be commit bd3654500b14e4ed8d4a8bb25ff9da5035a16a8b)