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 f2c65f9907760b8852b70c53637388f08751ba88)
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 e473068bddfaa9028ab8ee49291035313b35fed3)
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 9db9b6d85d80a8aaa8bd432afaef9bb634d7364d)
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 0641a43cd6fd081cac0275f5bde2ad70fa6a71bb)
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 5b13a564b8459c3134a43e1d4b4a791e33108b1b)
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 db0853ae4fead34ef382bbfcfe2f46453ab8b73b)
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 c993b07f7d5caf290ccb9ca81961aa35a3ed1f02)
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 146f1fe0b67ca0805f0e71358abc57da0c0579a9)
2008-03-06 17:19:12 +01:00
Stefan Metzmacher
98dafd5eb1
opendb: add odb_get_path()
...
metze
(This used to be commit 02071f151a22257d31f8a8b254625e2067e7b94d)
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 6cbb241c05539cc62526a366094c9c472e6422a5)
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 e699633db2d377a9077ff490208da277e250239b)
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 fc27730bad24e8dddaa2e7f754a16811e38a2f60)
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 48e703d5a6b8a7b273d0bf15fc6198ef25b0a7c4)
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 d96fcc52a70fd1236b767b1d88a39d78c4e8c48c)
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 c475353e34154eb13e35cc8b6cf553e3986f8677)
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 e6b708a52b0eada3fd374b66292ded3b0f6ce217)
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 aaaa26ae5e810495f313dfada771a8de86cedbd4)
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 5b12157e0f0f1cf6ea90503a72b56ab2032cb6e5)
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 65cfe71b2617598f8e38d04537cfc9ce44a36680)
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 fbfe953ba347a902297bd8eae900ca70efd2db01)
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 7872b05abe7532676c4cc25620b96ea5d59117d2)
2008-02-26 09:29:41 +01:00
Stefan Metzmacher
e5547201af
opendb_tdb: grant level2 oplocks
...
metze
(This used to be commit 57f1b9d11cfcac3b5fdee1ad9e4ba81d0859c8dc)
2008-02-26 09:29:40 +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 bd3654500b14e4ed8d4a8bb25ff9da5035a16a8b)
2008-02-26 09:29:40 +01:00
Stefan Metzmacher
71943b209b
opendb: add odb_update_oplock() call
...
metze
(This used to be commit df576d69c6981a4879a0e9447069fcfacb3588db)
2008-02-25 11:51:17 +01:00
Stefan Metzmacher
6cb9c1c61d
opendb: send also the oplock break level on MSG_NTVFS_OPLOCK_BREAK
...
metze
(This used to be commit 49402007f6e9e02a29792344c088e40d1a9b7acf)
2008-02-25 11:50:39 +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 11f35a2a4d383b506ced35ba06120f9531bac70c)
2008-02-25 11:50:30 +01:00
Jelmer Vernooij
10169a2030
Remove more global_loadparm instance.s
...
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
2008-02-21 17:54:24 +01:00
Jelmer Vernooij
2da3464080
r26670: Janitorial: Remove global_loadparm uses.
...
(This used to be commit 13cc6ca1d3c2b5899bdd02c4c7306a92baa260f5)
2008-01-05 09:42:02 -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 2f29f80e07adef1f020173f2cd6d947d0ef505ce)
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 61ad78ac98937ef7a9aa32075a91a1c95b7606b3)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
e31abef15f
r26440: Remove more uses of global_loadparm.
...
(This used to be commit 8858cf39722f192865e531164c72039fd18d7a8d)
2007-12-21 05:50:08 +01:00
Jelmer Vernooij
61873ce94c
r26431: Require ndr_push creators to specify a iconv_convenience context.
...
(This used to be commit 7352206f4450fdf881b95bda064cedd9d2477e4c)
2007-12-21 05:50:00 +01:00
Jelmer Vernooij
b65dba2245
r26355: Eliminate global_loadparm in more places.
...
(This used to be commit 5d589a0d94bd76a9b4c9fc748854e8098ea43c4d)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
a72c5053c5
r26353: Remove use of global_loadparm.
...
(This used to be commit 17637e4490e42db6cdef619286c4d5a0982e9d1a)
2007-12-21 05:48:57 +01:00
Jelmer Vernooij
51db4c3f3d
r26228: Store loadparm context in auth context, move more loadparm_contexts up the call stack.
...
(This used to be commit ba75f1613a9aac69dd5df94dd8a2b37820acd166)
2007-12-21 05:47:05 +01:00
Jelmer Vernooij
ca0b72a1fd
r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
...
(This used to be commit 56dfcb4f2f8e74c9d8b2fe3a0df043781188a555)
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 6223c7fddc972687eb577e04fc1c8e0604c35435)
2007-12-21 05:45:02 +01:00
Jelmer Vernooij
2151cde580
r25554: Convert last instances of BOOL, True and False to the standard types.
...
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9fe67a00939a1f04b35c451316fff58)
2007-10-10 15:07:31 -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 df9cebcb97e20564359097148665bd519f31bc6f)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
8d182d881d
r24816: Move the rest of the contents of core.h to more appropriate places.
...
include/ now only contains build system related headers, all other headers are
now near the source code they're related to.
(This used to be commit 6890a01dbfc6d8041a88ef5c6be52dfcd046fe80)
2007-10-10 15:03:15 -05:00
Jelmer Vernooij
61ffa08f4c
r24712: No longer expose the 'BOOL' data type in any interfaces.
...
(This used to be commit 1ce32673d960c8b05b6c1b1b99e1976a402417ae)
2007-10-10 15:02:54 -05:00
Andrew Tridgell
fe5124e38d
r24642: prevent recursion with fetch_locked
...
add a note about server_id exists checking
(This used to be commit dd951b983c0cde2dd54c5370dc8d6440509b0559)
2007-10-10 15:02:29 -05:00
Andrew Tridgell
4792285282
r24284: change brlock_tdb.c to use the dbwrap API. This actually makes the
...
backend abstraction for brlock pointless, but I have left it in place
for now. It would be useful for other clustering systems that can't
map to dbwrap, and would also be useful if we wanted to keep the
remote function call capabilities in ctdb instead of the less
efficient fetch_locked() call in dbwrap
(This used to be commit 912c014b7c131ab051ff6eb2db4e68cb6fbbeb14)
2007-10-10 15:01:36 -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 fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10 14:59:12 -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 83a61a2892539b2bcfbdaac7ca169c99f2b4503a)
2007-10-10 14:52:25 -05:00
Andrew Tridgell
66156220eb
r22082: merged the ctdb changes from bzr
...
added opendb ctdb backend from ronnie
(This used to be commit b0da25cb79f860bfa14ba7a8419c7996d936292b)
2007-10-10 14:49:48 -05:00
Andrew Tridgell
676a04a056
r21807: modularise the opendb code, so different backends can be
...
implemented. This will allow for a ctdb opendb backend.
(This used to be commit 6b91ca0968209ad17489341c78d9610607cc8320)
2007-10-10 14:49:29 -05:00
Jelmer Vernooij
bedf53f9e0
r21669: Fix --enable-dso build
...
(This used to be commit 7cf9d07c88b0c81777bb9363d445ac657982a366)
2007-10-10 14:49:07 -05:00