summaryrefslogtreecommitdiff
path: root/source4/cluster
Commit message (Collapse)AuthorAgeFilesLines
* s4:cluster: use DBWRAP_LOCK_ODER_NONE for local_db_tmp_open()Michael Adam2014-02-071-1/+1
| | | | | | | Make lack of lock oder checking more visible. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* dbwrap: add dbwrap_flags argument to dbwrap_local_open()Michael Adam2014-02-071-1/+1
| | | | | | | | To be consistent with db_open() and prepare for future possible extensions. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* source4/cluster and source4/ntvfs: convert to dbwrap, add ntdb option.Rusty Russell2013-04-125-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>
* lib/tdb_wrap: use tdb directly, not tdb_compat.Rusty Russell2012-06-191-1/+0
| | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s4-messaging: Fill in the whole server_id in all use casesAndrew Bartlett2012-04-301-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
* tdb_wrap: Move to specific directory.Jelmer Vernooij2012-03-101-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
* lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett2011-10-131-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
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-201-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>
* lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett2011-06-094-25/+0
| | | | | | | This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
* server_id.idl: Bring server_id.idl in commonAndrew Bartlett2011-06-093-3/+3
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-cluster Use task_id instead of id2 to clarify server_id structureAndrew Bartlett2011-06-093-7/+7
| | | | | | | | This seems a clearer and more acceptable name. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-061-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
* s4-messaging Rename messaging -> imessagingAndrew Bartlett2011-05-034-6/+6
| | | | | | | This avoid symbol and structure conflicts between Samba3 and Samba4, and chooses a less generic name. Andrew Bartlett
* s4-cluster Rename server_id.node -> vnn to match Samba3Andrew Bartlett2011-05-032-3/+3
|
* s4-cluster: Remove const from cluster_id_string()Andrew Bartlett2011-05-034-5/+5
| | | | | | This allows the caller to talloc_free() this result. Andrew Bartlett
* s4:cluster Rename .id to .pid in server_idAndrew Bartlett2011-05-032-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
* Use <tdb.h> to include tdb, so the system include file gets used when ↵Jelmer Vernooij2011-02-281-1/+1
| | | | | | building against system tdb.
* s4-idl: rename s4 server_id.idl to server_id4.idlAndrew Tridgell2011-02-183-3/+3
| | | | | | this avoids a conflict with the new s3 server_id.idl Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:cluster/cluster.h - fix another gcc 3.4 "struct" warningMatthias Dieter Wallnöfer2010-12-051-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
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-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
* s4-cluster: make cluster a private shared libAndrew Tridgell2010-10-301-4/+5
|
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-061-4/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+9
|
* s4:cluster: s/private/private_dataStefan Metzmacher2009-02-022-2/+2
| | | | metze
* s4:cluster: fix dependency to TDB_WRAPStefan Metzmacher2008-12-291-0/+1
| | | | metze
* s4:cluster: remove old/broken ctdb codeStefan Metzmacher2008-12-2993-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
* Use 32-bit smbpid in interface as required by SMB2, in line withJelmer Vernooij2008-12-231-3/+3
| | | | 1bdd08227e7d046305705050f21f0f1b6dd6994a.
* s4: fix LIBEVENTS dependencies and use more forward declarationsStefan Metzmacher2008-12-175-5/+1
| | | | | | | We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
* Rename dom_sid.idl -> server_id.idl (since it no longer actually contains ↵Jelmer Vernooij2008-12-163-3/+3
| | | | the dom_sid). No longer include it from security.idl.
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+1
| | | | remove some unused functions.
* Fix includes.Jelmer Vernooij2008-10-153-2/+3
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-115-6/+6
|
* Rename smbd -> samba.Jelmer Vernooij2008-09-241-4/+4
| | | | | | | | This reverts commit 05ea5e23cf4e70de0bd658b1c5c0ead133967091. Conflicts: source4/smbd/server.c
* Fix last few includes to use new tdb location.Jelmer Vernooij2008-09-162-2/+2
|
* Use single copy of tdb in both samba3 and samba4.Jelmer Vernooij2008-09-1621-21/+21
|
* Use a custom init function for samba4 that sets a samba4Simo Sorce2008-06-148-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)
* opendb: add write time handlingStefan Metzmacher2008-06-031-28/+23
| | | | | metze (This used to be commit 3868d8ce630c71e2c70aae442fcdbd68ba1eb708)
* Use variables for source directory in a couple more places.Jelmer Vernooij2008-05-182-4/+5
| | | | (This used to be commit 2860a7db5968c7007522cdb300eba390da929ab8)
* use uintptr_t instead of intptr_t where appropriateAndrew Tridgell2008-04-171-1/+1
| | | | (This used to be commit d62f2bcc85c13605c133db250e0a86d2d6ccc481)
* Move object files lists to makefile rather than smb_build.Jelmer Vernooij2008-04-142-8/+11
| | | | (This used to be commit 5628d58990144463fd87f8c847c9384ac2193681)
* Fix references to ntvfs share configAndrew Bartlett2008-03-271-1/+1
| | | | | Andrew Bartlett (This used to be commit 4e4152dfd70145a7a00bc42effcd07b607204926)
* Make oplocks a per-share option.Andrew Bartlett2008-03-271-1/+1
| | | | | | | This even goes via the share options system (a very odd layer of indirection). Andrew Bartlett (This used to be commit f2c65f9907760b8852b70c53637388f08751ba88)
* opendb: pass down a pointer to the fd in odb_open_file()Stefan Metzmacher2008-03-121-1/+1
| | | | | | | This prepares kernel oplock support. metze (This used to be commit 9db9b6d85d80a8aaa8bd432afaef9bb634d7364d)
* opendb: force odb_can_open() before odb_open_file()Stefan Metzmacher2008-03-071-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)
* opendb: add allow_level_II_oplock parameter to odb_open_file()Stefan Metzmacher2008-03-061-0/+1
| | | | | | | Not all clients support a fallback to level II oplocks. metze (This used to be commit 146f1fe0b67ca0805f0e71358abc57da0c0579a9)
* opendb: add odb_get_path()Stefan Metzmacher2008-02-291-0/+20
| | | | | metze (This used to be commit 02071f151a22257d31f8a8b254625e2067e7b94d)
* opendb: only return delete_on_close on odb_get_delete_on_close()Stefan Metzmacher2008-02-281-13/+3
| | | | | metze (This used to be commit e699633db2d377a9077ff490208da277e250239b)
* opendb: return the path that should be deleted in odb_close_file()Stefan Metzmacher2008-02-281-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)
* opendb: unify the parameters of odb_open_file() and odb_can_open()Stefan Metzmacher2008-02-261-3/+4
| | | | | metze (This used to be commit e6b708a52b0eada3fd374b66292ded3b0f6ce217)