1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

182 Commits

Author SHA1 Message Date
Jelmer Vernooij
f5c3742a4c source4/ntvfs: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
Jelmer Vernooij
136c160064 Use <tdb.h> to include tdb, so the system include file gets used when building against
system tdb.
2011-02-28 21:11:21 +01:00
Pavel Shilovsky
738b2abe78 s4: Don't grant level II oplock to a file with byte-range locks.
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
2011-02-15 11:09:17 +01:00
Jelmer Vernooij
3deece5591 s4: Remove the old perl/m4/make/mk-based build system.
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-31 02:01:44 +00:00
Andrew Bartlett
6c726745a4 s4:ntvfs rename notify.idl to s4_notify.idl until we can merge this IDL
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
2010-05-24 23:08:11 +10:00
Jelmer Vernooij
f9ca9e46ad Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
Andrew Tridgell
b690fedef5 s4-waf: removed the AUTOGENERATED markers
we won't be using the mk -> wscript generator again
2010-04-06 20:27:16 +10:00
Andrew Tridgell
f9eae32f4b s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them 2010-04-06 20:27:11 +10:00
Andrew Tridgell
845e0cbe6f build: commit all the waf build files in the tree 2010-04-06 20:26:48 +10:00
Andrew Tridgell
e5c83e1adb s4-ntvfs: use TYPESAFE_QSORT() in notify code 2010-02-13 22:36:12 +11:00
Andrew Tridgell
186ea099c5 s4-ntvfs: move valid lock range test from smb2 layer to generic code
win7 also fails invalid lock ranges on SMB
2009-11-27 19:42:10 +11:00
Stefan Metzmacher
33e8f47725 s4:ntvfs/common: s/private/private_data
metze
2009-02-02 13:08:32 +01:00
Stefan Metzmacher
183c379fe5 s4:lib/tevent: rename structs
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
2008-12-29 20:46:40 +01:00
Stefan Metzmacher
e36d64728f s4:cluster: remove old/broken ctdb code
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-29 14:46:09 +01:00
Stefan Metzmacher
a7036d2bd0 s4: Revert "r24284: change brlock_tdb.c to use the dbwrap API. This actually makes the"
This reverts commit 4792285282.

Conflicts:

	source4/ntvfs/common/brlock_tdb.c
	source4/ntvfs/common/config.mk
2008-12-29 14:46:06 +01:00
Jelmer Vernooij
8df6af213a Use 32-bit smbpid in interface as required by SMB2, in line with
1bdd08227e.
2008-12-23 23:02:54 +01:00
Jelmer Vernooij
9565999755 Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02:00
Jelmer Vernooij
8ec93160d5 Fix last few includes to use new tdb location. 2008-09-16 16:09:50 +02:00
Andrew Tridgell
70219bee13 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 9d74201e46)
2008-06-03 15:11:42 -07:00
Stefan Metzmacher
0827b08a43 opendb: add write time handling
metze
(This used to be commit 3868d8ce63)
2008-06-03 14:03:49 +02:00
Andrew Tridgell
1bdd08227e smbpid needs to be 32 bit now to cope with SMB2
(This used to be commit a2854fd6ea)
2008-06-02 11:03:19 +10:00
Jelmer Vernooij
60ae8f0657 Fix a bunch of dependencies.
(This used to be commit a63f458462)
2008-05-18 23:40:23 +02:00
Jelmer Vernooij
4c70cda986 Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b5211994)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147 Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88 Use variables for source directory in a couple more places.
(This used to be commit c41bd3005f)
2008-05-18 19:54:27 +02:00
Jelmer Vernooij
c15ffa27cb Explicitly require event context to be specified.
(This used to be commit a95a71fe45)
2008-04-17 01:19:53 +02:00
Jelmer Vernooij
e9017ba418 Use _OBJ_FILES variables in a couple more places.
(This used to be commit 92856d5054)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
afe3e8172d Install public header files again and include required prototypes.
(This used to be commit 47ffbbf674)
2008-04-02 04:53:27 +02:00
Andrew Bartlett
7f2927528c Fix references to ntvfs share config
Andrew Bartlett
(This used to be commit 4e4152dfd7)
2008-03-27 20:40:40 +11:00
Andrew Bartlett
4fc27c9969 Make oplocks a per-share option.
This even goes via the share options system (a very odd layer of indirection).

Andrew Bartlett
(This used to be commit f2c65f9907)
2008-03-27 20:32:02 +11:00
Stefan Metzmacher
49c86b73bf opendb_tdb: use sys_lease to setup kernel oplocks
metze
(This used to be commit e473068bdd)
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
59917521e9 opendb: pass down a pointer to the fd in odb_open_file()
This prepares kernel oplock support.

metze
(This used to be commit 9db9b6d85d)
2008-03-12 17:35:04 +01:00
Stefan Metzmacher
db06d932c8 opendb_tdb: keep struct opendb_file arround for the lifetime of struct odb_lock
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 0641a43cd6)
2008-03-08 09:28:17 +01:00
Stefan Metzmacher
11fb55e8a4 opendb_tdb: correctly initialize modified to false
Otherwise this variable would never change its value...

metze
(This used to be commit 5b13a564b8)
2008-03-08 09:28:17 +01:00
Stefan Metzmacher
e5e799aeb6 opendb: force odb_can_open() before odb_open_file()
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 db0853ae4f)
2008-03-07 19:35:12 +01:00
Stefan Metzmacher
6c27daeeca opendb_tdb: pass down struct messaging_context directly to odb_oplock_break_send()
metze
(This used to be commit c993b07f7d)
2008-03-07 19:15:21 +01:00
Stefan Metzmacher
b7db5f7cb5 opendb: add allow_level_II_oplock parameter to odb_open_file()
Not all clients support a fallback to level II oplocks.

metze
(This used to be commit 146f1fe0b6)
2008-03-06 17:19:12 +01:00
Stefan Metzmacher
98dafd5eb1 opendb: add odb_get_path()
metze
(This used to be commit 02071f151a)
2008-02-29 15:17:52 +01:00
Jelmer Vernooij
fc6bc92e11 Merge branch 'v4-0-trivial' into v4-0-test
(This used to be commit 6cbb241c05)
2008-02-28 18:27:29 +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
32061705cf opendb_tdb: EXCLUSIVE oplock use the same matching logic
metze
(This used to be commit 48e703d5a6)
2008-02-27 16:33:13 +01:00
Jelmer Vernooij
48e9b4cea1 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit d96fcc52a7)
2008-02-27 16:03:00 +01:00
Stefan Metzmacher
2b94ffe5e7 opendb_tdb: with break_to_none attribute only opens also break oplocks
metze
(This used to be commit c475353e34)
2008-02-26 13:53:33 +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
476c9d10bb opendb_tdb: only file->delete_on_close == true should give DELETE_PENDING
metze
(This used to be commit 5b12157e0f)
2008-02-26 09:29:42 +01:00
Stefan Metzmacher
d1fb021300 opendb_tdb: move sharemode, oplock logic into odb_tdb_open_can_internal()
metze
(This used to be commit 65cfe71b26)
2008-02-26 09:29:41 +01:00
Stefan Metzmacher
940e86132d opendb_tdb: add force break to none logic
metze
(This used to be commit fbfe953ba3)
2008-02-26 09:29:41 +01:00
Stefan Metzmacher
c749b66ead opendb_tdb: attribute only opens doesn't conflict with BATCH oplocks
metze
(This used to be commit 7872b05abe)
2008-02-26 09:29:41 +01:00