summaryrefslogtreecommitdiffstats
path: root/source3/smbd/oplock.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:util: rename procid_equal() to serverid_equal()Michael Adam2012-06-211-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: change oplock.c to use fsp_fnum_dbg() for fsp->fnum logging.Michael Adam2012-06-151-5/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: change set_file_oplock() to return NTSTATUSMichael Adam2012-06-081-5/+6
| | | | | | | | Pair-Programmed-With: Volker Lendecke <vl@samba.org> Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Jun 8 23:20:20 CEST 2012 on sn-devel-104
* s3:smbd/oplock: avoid procid_is_me()Stefan Metzmacher2012-06-031-2/+4
| | | | metze
* s3:smbd: move global koplocks to smbd_server_connectionStefan Metzmacher2012-05-251-0/+19
| | | | metze
* s3:smbd: pass smbd_server_connection to should_notify_deferred_opens()Stefan Metzmacher2012-05-251-1/+1
| | | | metze
* s3:smbd: move global oplocks vars to smbd_server_connectionStefan Metzmacher2012-05-251-10/+15
| | | | metze
* s3:smbd: remove unused get_number_of_exclusive_open_oplocks()Stefan Metzmacher2012-05-251-9/+0
| | | | metze
* s3:onefs: remove all onefs related code as it not maintained anymoreStefan Metzmacher2012-05-161-3/+0
| | | | | | | | | | See https://lists.samba.org/archive/samba-technical/2012-May/083631.html for the discussion. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 16 11:23:05 CEST 2012 on sn-devel-104
* s3: Remove code TALLOC_FREE already doesVolker Lendecke2012-04-261-5/+1
|
* s3:smbd only care about missing level2 support if kernel oplocks are enabledChristian Ambach2012-04-111-4/+10
| | | | | | | | | 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
* s3:smbd add seperate function to initialize kernel oplocksChristian Ambach2012-04-111-3/+7
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:param convert kernel oplocks to share parameterChristian Ambach2012-04-111-1/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: get_share_mode_lock->get_existing_share_mode_lockVolker Lendecke2012-02-191-3/+3
|
* s3: Change locking order between brlock and lockingVolker Lendecke2012-01-181-8/+58
| | | | | | | | 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.
* s3: Put an indirection layer into share_mode_lockVolker Lendecke2012-01-121-3/+3
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Introduce get_share_mode_lock_fresh()Volker Lendecke2012-01-121-6/+3
| | | | | | | | 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>
* s3:smbd/oplock: make process_oplock_async_level2_break_message() staticStefan Metzmacher2011-12-141-1/+1
| | | | metze
* s3:smbd/oplock: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher2011-12-141-25/+5
| | | | metze
* s3:smbd/oplock: pass smbd_server_connection to onefs_init_kernel_oplocks()Stefan Metzmacher2011-12-131-1/+1
| | | | metze
* s3:smbd/oplock: pass smbd_server_connection to linux_init_kernel_oplocks()Stefan Metzmacher2011-12-131-1/+1
| | | | metze
* s3:smbd/oplock: pass smbd_server_connection to irix_init_kernel_oplocks()Stefan Metzmacher2011-12-131-1/+1
| | | | metze
* s3:smbd/oplock: pass sconn as private_data to process_open_retry_message()Stefan Metzmacher2011-12-131-6/+9
| | | | metze
* s3:smbd/oplock: pass sconn as private_data to process_kernel_oplock_break()Stefan Metzmacher2011-12-131-8/+8
| | | | metze
* s3:smbd/oplock: pass sconn as private_data to process_oplock_break_response()Stefan Metzmacher2011-12-131-6/+9
| | | | metze
* s3:smbd/oplock: pass sconn as private_data to ↵Stefan Metzmacher2011-12-131-7/+7
| | | | | | process_oplock_async_level2_break_message() metze
* s3:smbd/oplock: pass sconn as private_data to process_oplock_break_message()Stefan Metzmacher2011-12-131-7/+7
| | | | metze
* s3:smbd/oplock: pass smbd_server_connection to init_oplocks()Stefan Metzmacher2011-12-131-6/+6
| | | | metze
* s3:smbd/oplock: avoid using server_event_context() in ↵Stefan Metzmacher2011-12-121-3/+3
| | | | | | add_oplock_timeout_handler() metze
* s3: Fix some 64-bit warningsVolker Lendecke2011-12-081-8/+12
|
* s3: Use autogenerated open_files.idlVolker Lendecke2011-12-021-0/+1
|
* s3: Pass sconn explicitly to schedule_deferred_open_message_smbVolker Lendecke2011-08-021-2/+10
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-08-021-4/+4
|
* s3-build: Provide a run-time shim to work around duplicate symbolsAndrew Bartlett2011-06-211-2/+2
| | | | | | | | | | | | | | | | 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>
* lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett2011-06-091-5/+5
| | | | | | | This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-globals Remove smbd_event_context() (use server_event_context())Andrew Bartlett2011-05-311-1/+1
| | | | | | | | 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
* s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner2011-03-301-1/+0
| | | | Guenther
* s3-messages: only include messages.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-cluster Always fill in the clustering vnn elementAndrew Bartlett2011-02-171-4/+0
| | | | | | This avoids this structure being partially uninitialised. Adnrew Bartlett
* Move the "oplock file with byte range locks" check to the correct place, ↵Jeremy Allison2011-02-051-17/+0
| | | | | | | 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
* Ensure we send the direct levelII oplock break to the correct fid.Pavel Shilovsky2011-02-011-1/+10
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Feb 1 00:39:56 CET 2011 on sn-devel-104
* Fix bug #7928 - Samba problems with kernel oplocks option set to "no"Pavel Shilovsky2011-01-311-7/+28
| | | | | We should not grant levelII oplocks on a file with existing byte range locks.
* Add name_hash into the share mode entry struct (as yet only use for renames ↵Jeremy Allison2011-01-251-0/+2
| | | | to identify a specific path).
* s3: Hang the isilon kernel oplocks off the NULL contextVolker Lendecke2010-10-081-1/+2
| | | | | | | | | | | | | 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
* s3: Hang the irix kernel oplocks off the NULL ctxVolker Lendecke2010-10-081-1/+1
| | | | Just a fd_event to be cleaned up. The pipe is closed implicitly.
* s3: Hang the linux kernel oplocks off the NULL ctxVolker Lendecke2010-10-081-1/+1
| | | | | The destructor that is called removes the signal handler. But at process exit the signal handling is lost anyway.
* s3: Stop using the write cache after an oplock breakVolker Lendecke2010-10-051-0/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Oct 5 10:09:38 UTC 2010 on sn-devel-104
* s3: Remove smbd_server_conn from process_kernel_oplock_breakVolker Lendecke2010-10-031-2/+8
|