Christian Ambach
2927ca3670
s3:smbd only care about missing level2 support if kernel oplocks are enabled
...
if kernel oplocks are not enabled for that share, we can grant level2 oplocks
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 11 22:45:21 CEST 2012 on sn-devel-104
2012-04-11 22:45:21 +02:00
Christian Ambach
1d9a3d488d
s3:smbd add seperate function to initialize kernel oplocks
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-04-11 11:11:39 -07:00
Christian Ambach
2a36408d40
s3:param convert kernel oplocks to share parameter
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-04-11 11:11:39 -07:00
Volker Lendecke
e5c8484073
s3: get_share_mode_lock->get_existing_share_mode_lock
2012-02-19 17:44:26 +01:00
Volker Lendecke
cf77a21c63
s3: Change locking order between brlock and locking
...
But 8175 was fixed in a way that brlock.tdb was always locked before
locking.tdb. This patch fixes the bug in a different way. locking.tdb
is the central tdb for files and should always be locked first.
This patch solves the problem by postponing the level2 break messages,
which are async anyway.
2012-01-18 14:48:04 +01:00
Volker Lendecke
cfebba96bd
s3: Put an indirection layer into share_mode_lock
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-01-12 23:59:22 +01:00
Volker Lendecke
9cf6d735d4
s3: Introduce get_share_mode_lock_fresh()
...
This slightly simplifies the code path for all callers which assume
that a share mode exists already. Only the callers in open_file_ntcreate
and open_directory will ever create new share modes.
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-01-12 23:59:22 +01:00
Stefan Metzmacher
324e66fd45
s3:smbd/oplock: make process_oplock_async_level2_break_message() static
...
metze
2011-12-14 12:00:07 +01:00
Stefan Metzmacher
dabc2cb9cb
s3:smbd/oplock: use talloc_get_type_abort() as private_data can't be NULL
...
metze
2011-12-14 12:00:07 +01:00
Stefan Metzmacher
6fc8dc98ab
s3:smbd/oplock: pass smbd_server_connection to onefs_init_kernel_oplocks()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
641a2dea81
s3:smbd/oplock: pass smbd_server_connection to linux_init_kernel_oplocks()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
47e21bcc43
s3:smbd/oplock: pass smbd_server_connection to irix_init_kernel_oplocks()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
17ae2267e3
s3:smbd/oplock: pass sconn as private_data to process_open_retry_message()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
90674f0fce
s3:smbd/oplock: pass sconn as private_data to process_kernel_oplock_break()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
7fee41cd39
s3:smbd/oplock: pass sconn as private_data to process_oplock_break_response()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
fb81772eed
s3:smbd/oplock: pass sconn as private_data to process_oplock_async_level2_break_message()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
da4b503581
s3:smbd/oplock: pass sconn as private_data to process_oplock_break_message()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
21de673575
s3:smbd/oplock: pass smbd_server_connection to init_oplocks()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
68a7be6ab4
s3:smbd/oplock: avoid using server_event_context() in add_oplock_timeout_handler()
...
metze
2011-12-12 14:35:43 +01:00
Volker Lendecke
14d3889285
s3: Fix some 64-bit warnings
2011-12-08 15:03:42 +01:00
Volker Lendecke
1c46fb5c3e
s3: Use autogenerated open_files.idl
2011-12-02 22:43:05 +01:00
Volker Lendecke
502fdae7f1
s3: Pass sconn explicitly to schedule_deferred_open_message_smb
2011-08-02 19:18:08 +02:00
Volker Lendecke
77f5246f09
s3: Fix some nonempty blank lines
2011-08-02 19:18:08 +02:00
Andrew Bartlett
b373d0e777
s3-build: Provide a run-time shim to work around duplicate symbols
...
The become_root() and similar 'smbd' functions that are used widely in
Samba libraries had 'dummy' copies in dummysmbd.c and dummyroot.c.
These have been replaced by a runtime plugin mechanim, which ensures
that standlone binaries still do nothing, while in smbd the correct
function is used.
This avoids having these as duplicate symbols in the smbd binary,
which can cause unpredictable behaviour.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-21 15:54:51 +10:00
Andrew Bartlett
16b1c77644
lib/util Bring procid_str() into lib/util as server_id_string()
...
This is needed for OpenChange, which prints Samba struct server_id
values in debug messages.
Andrew Bartlett
2011-06-09 12:40:09 +02:00
Andrew Bartlett
3d15137653
s3-talloc Change TALLOC_ARRAY() to talloc_array()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ARRAY isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
e5dd03d199
s3-globals Remove smbd_event_context() (use server_event_context())
...
This has been a wrapper around server_event_context() for some time
now, and removing this from dummmysmbd.c assists with library
dependencies.
Andrew Bartlett
2011-05-31 00:32:07 +02:00
Günther Deschner
ab36d597e7
s3-messages: make ndr_messaging.h part of messages.h.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
b2af281e50
s3-messages: only include messages.h where needed.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
8c24ebf371
s3: include smbd/smbd.h where needed.
...
Guenther
2011-03-30 01:13:08 +02:00
Andrew Bartlett
09c4a5cd9b
s3-cluster Always fill in the clustering vnn element
...
This avoids this structure being partially uninitialised.
Adnrew Bartlett
2011-02-17 16:02:19 +01:00
Jeremy Allison
ece94989b8
Move the "oplock file with byte range locks" check to the correct place, where we're making oplock decisions.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Feb 5 01:18:14 CET 2011 on sn-devel-104
2011-02-05 01:18:14 +01:00
Pavel Shilovsky
6696fd1c1e
Ensure we send the direct levelII oplock break to the correct fid.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Feb 1 00:39:56 CET 2011 on sn-devel-104
2011-02-01 00:39:56 +01:00
Pavel Shilovsky
7690d9d70c
Fix bug #7928 - Samba problems with kernel oplocks option set to "no"
...
We should not grant levelII oplocks on a file with existing
byte range locks.
2011-01-31 12:00:15 -08:00
Jeremy Allison
b97f1ce68a
Add name_hash into the share mode entry struct (as yet only use for renames to identify a specific path).
2011-01-25 14:01:52 -08:00
Volker Lendecke
615482a83d
s3: Hang the isilon kernel oplocks off the NULL context
...
All I see is a fd_event that does not need a special destructor.
Tim, Steven, I've added the #error as well for you to remove after review.
Thanks,
Volker
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Oct 8 20:48:11 UTC 2010 on sn-devel-104
2010-10-08 20:48:11 +00:00
Volker Lendecke
703e438599
s3: Hang the irix kernel oplocks off the NULL ctx
...
Just a fd_event to be cleaned up. The pipe is closed implicitly.
2010-10-08 21:11:46 +02:00
Volker Lendecke
613a0b6c00
s3: Hang the linux kernel oplocks off the NULL ctx
...
The destructor that is called removes the signal handler. But at process
exit the signal handling is lost anyway.
2010-10-08 21:11:46 +02:00
Volker Lendecke
ea08cd280c
s3: Stop using the write cache after an oplock break
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Oct 5 10:09:38 UTC 2010 on sn-devel-104
2010-10-05 10:09:38 +00:00
Volker Lendecke
554f5e7c60
s3: Remove smbd_server_conn from process_kernel_oplock_break
2010-10-03 18:17:08 +02:00
Volker Lendecke
5d1d575e87
s3: Remove smbd_server_conn from process_oplock_break_message
2010-10-03 18:17:08 +02:00
Volker Lendecke
35d6d44e5a
s3: Remove smbd_server_conn from process_oplock_async_level2_break_message
2010-10-03 18:17:08 +02:00
Volker Lendecke
1d3aa74e4c
s3: Lift smbd_server_conn from initial_break_processing
2010-10-03 18:17:08 +02:00
Volker Lendecke
b448e42de4
s3: Lift smbd_server_conn from file_find_dif
2010-09-28 07:36:16 +02:00
Volker Lendecke
1808dd0a85
s3: Make srv_send_smb take an sconn instead of a sock fd
2010-08-24 21:06:41 +02:00
Volker Lendecke
7c0c7f3337
s3: Remove smbd_server_fd from send_break_message_smb1
2010-08-16 22:39:16 +02:00
Volker Lendecke
75e16757e3
s3: Remove smbd_messaging_context() from contend_level2_oplocks_begin_default()
2010-07-05 11:06:27 +02:00
Volker Lendecke
d1587f9924
s3: Remove smbd_messaging_context() from reply_to_oplock_break_requests()
2010-07-05 11:06:27 +02:00
Volker Lendecke
2d7cce6b7c
s3: Remove procid_self() from break_kernel_oplock()
2010-07-05 11:06:25 +02:00
Volker Lendecke
a529fbb713
s3: Remove smbd_server_conn from break_level2_to_none_async
2010-06-12 15:42:55 +02:00