summaryrefslogtreecommitdiff
path: root/source4/ntvfs/common
Commit message (Collapse)AuthorAgeFilesLines
* s4:ntvfs/common: explicitly check the status of imessaging_send() in ↵Stefan Metzmacher2014-04-021-0/+5
| | | | | | | | | notify_send() This avoid an unused warning... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* source4/cluster and source4/ntvfs: convert to dbwrap, add ntdb option.Rusty Russell2013-04-123-160/+129
| | | | | | | | | | | | 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>
* brlock_tdb.c: Fix typo in comment.Karolin Seeger2013-02-181-1/+1
| | | | | | redundent -> redundant Signed-off-by: Karolin Seeger <kseeger@samba.org>
* UTIL_TDB: lowercase name.Jelmer Vernooij2012-05-031-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu May 3 20:18:22 CEST 2012 on sn-devel-104
* tdb_wrap: Move to specific directory.Jelmer Vernooij2012-03-103-3/+3
| | | | | | | | | | 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
* s4:ntvfs common - remove two outdated function prototypesMatthias Dieter Wallnöfer2011-09-202-4/+0
| | | | | | | | | The two functions don't exist anymore. Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Sep 20 20:16:29 CEST 2011 on sn-devel-104
* s4:ntvfs common - add "UTIL_TDB" and "tdb-wrap" as internal build dependencyMatthias Dieter Wallnöfer2011-09-201-0/+1
| | | | | | | These modules are required for both header and source code files (see bug #8468). Reviewed-by: Jelmer
* s4:ntvfs/common/brlock.c - remove unnecessary include "tdb_compat.h"Matthias Dieter Wallnöfer2011-09-191-1/+0
| | | | | | | | | | Attempt to fix bug #8468 (https://bugzilla.samba.org/show_bug.cgi?id=8468). Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Sep 19 18:03:24 CEST 2011 on sn-devel-104
* s4:ntvfs: s/== PROTOCOL_SMB2/>= PROTOCOL_SMB2_02/Stefan Metzmacher2011-09-051-1/+1
| | | | metze
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-202-7/+7
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-204-4/+4
| | | | | | | | 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>
* librpc/idr Use the Samba3 notify.idl in common.Andrew Bartlett2011-06-091-1/+1
| | | | | | | | | The extra fields in the structure that Samba4 does not use should not bother it. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-ntvfs: Rename brl_*() -> brlock_*() to avoid conflict with brlock_init in s3Andrew Bartlett2011-05-083-11/+11
|
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-063-3/+3
| | | | | | | | | 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-036-25/+25
| | | | | | | This avoid symbol and structure conflicts between Samba3 and Samba4, and chooses a less generic name. Andrew Bartlett
* source4/ntvfs: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-0/+2
|
* Use <tdb.h> to include tdb, so the system include file gets used when ↵Jelmer Vernooij2011-02-284-4/+4
| | | | | | building against system tdb.
* s4: Don't grant level II oplock to a file with byte-range locks.Pavel Shilovsky2011-02-153-1/+41
| | | | | | | | | Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Feb 15 11:09:17 CET 2011 on sn-devel-104
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-11/+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:ntvfs rename notify.idl to s4_notify.idl until we can merge this IDLAndrew Bartlett2010-05-241-1/+1
| | | | | | | | This IDL is almost common, but the source3 version has a hand-marshalled server_id. The s3compat build has problems with two different idl files of the same name. Andrew Bartlett
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-182-9/+6
|
* 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/+10
|
* s4-ntvfs: use TYPESAFE_QSORT() in notify codeAndrew Tridgell2010-02-131-3/+2
|
* s4-ntvfs: move valid lock range test from smb2 layer to generic codeAndrew Tridgell2009-11-271-0/+19
| | | | win7 also fails invalid lock ranges on SMB
* s4:ntvfs/common: s/private/private_dataStefan Metzmacher2009-02-023-10/+10
| | | | metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* s4:cluster: remove old/broken ctdb codeStefan Metzmacher2008-12-292-6/+1
| | | | | | | | 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
* s4: Revert "r24284: change brlock_tdb.c to use the dbwrap API. This actually ↵Stefan Metzmacher2008-12-292-72/+101
| | | | | | | | | | | makes the" This reverts commit 4792285282e2ec78ccb0ebc3cac6465d1d26ef10. Conflicts: source4/ntvfs/common/brlock_tdb.c source4/ntvfs/common/config.mk
* Use 32-bit smbpid in interface as required by SMB2, in line withJelmer Vernooij2008-12-232-5/+5
| | | | 1bdd08227e7d046305705050f21f0f1b6dd6994a.
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-2/+2
|
* Fix last few includes to use new tdb location.Jelmer Vernooij2008-09-164-4/+4
|
* Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-testAndrew Tridgell2008-06-033-16/+68
|\ | | | | | | (This used to be commit 9d74201e462f2f95ed5bd91200681db3bd2a9277)
| * opendb: add write time handlingStefan Metzmacher2008-06-033-16/+68
| | | | | | | | | | metze (This used to be commit 3868d8ce630c71e2c70aae442fcdbd68ba1eb708)
* | smbpid needs to be 32 bit now to cope with SMB2Andrew Tridgell2008-06-022-5/+5
|/ | | | (This used to be commit a2854fd6eaf097b5a9a562e0b8f1a599485fec42)
* Fix a bunch of dependencies.Jelmer Vernooij2008-05-181-1/+1
| | | | (This used to be commit a63f458462d207d215a6e4ef8e480b0c8daedf6a)
* Fix a couple (well, little more than that..) of typos.Jelmer Vernooij2008-05-181-1/+1
| | | | (This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
* Create prototype headers from Makefile directory, without smb_build in the ↵Jelmer Vernooij2008-05-181-1/+2
| | | | | | middle. (This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
* Use variables for source directory in a couple more places.Jelmer Vernooij2008-05-181-1/+1
| | | | (This used to be commit c41bd3005f5f0b9cfd3709fc9217b4a401d265b4)
* Explicitly require event context to be specified.Jelmer Vernooij2008-04-171-0/+4
| | | | (This used to be commit a95a71fe45ef6a578569931a7c38061783d07db3)
* Use _OBJ_FILES variables in a couple more places.Jelmer Vernooij2008-04-141-11/+4
| | | | (This used to be commit 92856d5054106894b65cd1a1b5119c0facfc4cff)
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-022-15/+15
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* 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-2/+1
| | | | | | | This even goes via the share options system (a very odd layer of indirection). Andrew Bartlett (This used to be commit f2c65f9907760b8852b70c53637388f08751ba88)
* opendb_tdb: use sys_lease to setup kernel oplocksStefan Metzmacher2008-03-122-9/+42
| | | | | metze (This used to be commit e473068bddfaa9028ab8ee49291035313b35fed3)
* opendb: pass down a pointer to the fd in odb_open_file()Stefan Metzmacher2008-03-123-4/+6
| | | | | | | This prepares kernel oplock support. metze (This used to be commit 9db9b6d85d80a8aaa8bd432afaef9bb634d7364d)
* opendb_tdb: keep struct opendb_file arround for the lifetime of struct odb_lockStefan Metzmacher2008-03-081-135/+109
| | | | | | | | | That means we only have to parse the record once and as the tdb record is locked the in memory copy is always the same as the one in the tdb. metze (This used to be commit 0641a43cd6fd081cac0275f5bde2ad70fa6a71bb)
* opendb_tdb: correctly initialize modified to falseStefan Metzmacher2008-03-081-1/+1
| | | | | | | Otherwise this variable would never change its value... metze (This used to be commit 5b13a564b8459c3134a43e1d4b4a791e33108b1b)
* opendb: force odb_can_open() before odb_open_file()Stefan Metzmacher2008-03-073-65/+72
| | | | | | | | | | | 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)