Stefan Metzmacher
78582da8b5
s3:smbd/server: maintain the list of child processes under smbd_parent_context
...
metze
2011-12-14 08:15:06 +01:00
Stefan Metzmacher
dddaa52552
s3:smbd/server: pass smbd_parent_context to smbd_setup_sig_chld_handler()
...
metze
2011-12-14 08:14:54 +01:00
Stefan Metzmacher
6d15ca3482
s3:smbd/globals: change 'int am_parent' into 'struct smbd_parent_context *am_parent'
...
This is a short term solution on the way to get rid of 'am_parent' completely.
metze
2011-12-14 08:14:44 +01:00
Stefan Metzmacher
9eb3c053b8
s3:smbd/globals: remove unused extern declarations
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec 13 22:06:02 CET 2011 on sn-devel-104
2011-12-13 22:06:02 +01:00
Stefan Metzmacher
297f1b1f12
s3:smbd/server: move smbd_open_socket and smbd_parent_context to the top
...
metze
2011-12-13 20:31:10 +01:00
Stefan Metzmacher
6630b20046
s3:smbd/oplock_onefs: avoid using smbd_messaging_context()
...
metze
2011-12-13 20:31:10 +01:00
Stefan Metzmacher
fcc1f5f7f7
s3:smbd/oplock_onefs: pass smbd_server_connection to onefs_oplock_wait_record()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
290ce331b6
s3:smbd: pass smbd_server_connection to smbd_setup_sig_hup_handler()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
8a83464216
s3:smbd: pass smbd_server_connection to smbd_setup_sig_term_handler()
...
metze
2011-12-13 20:31:09 +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
Volker Lendecke
5efd7e16c2
s3: Move can_delete_directory to smbd/, remove shim
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Dec 13 19:00:37 CET 2011 on sn-devel-104
2011-12-13 19:00:37 +01:00
Volker Lendecke
34d58c9d92
s3: Move can_set_delete_on_close to smbd/
2011-12-13 17:27:26 +01:00
Volker Lendecke
2d2d72e479
s3: Remove an else{} in remove_deferred_open_entry
2011-12-13 17:27:26 +01:00
Stefan Metzmacher
3cf275cd75
s3:smbd/msdfs: enum_msdfs_links() doesn't need a smbd_server_connection anymore
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec 13 17:26:20 CET 2011 on sn-devel-104
2011-12-13 17:26:20 +01:00
Stefan Metzmacher
ae7d877841
s3:smbd: use connections_snum_used() instead of conn_snum_used() for load_usershare_shares()
...
Before removing the share security descriptor, we should make sure there're
really no active users anymore.
metze
2011-12-13 15:45:36 +01:00
Stefan Metzmacher
cefb797434
s3:smbd: add connections_snum_used()
...
This works similar to conn_snum_used(), but instead of
looking at the current connection only, it looks at
all active connections in "connections.tdb".
metze
2011-12-13 15:45:36 +01:00
Stefan Metzmacher
1399e6bdf5
s3:param: don't reference conn_snum_used directly in load_usershare_shares()
...
This uses the same logic as lp_killunused().
metze
2011-12-13 15:45:36 +01:00
Stefan Metzmacher
a131713b96
s3:smbd/server: remove unused msg_sam_sync()
...
metze
2011-12-13 12:36:36 +01:00
Stefan Metzmacher
2bab5073ba
s3:smbd/server: add parent specific SIGTERM and SIGHUP handlers
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
1738a61b84
s3:smbd/server: create smbd_parent_context earlier
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
dc38db31ba
s3:smbd/server: remember the ev_ctx on the smbd_parent_context
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
20c343b8e8
s3:smbd/server: remember the msg_ctx on the smbd_parent_context
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
e09c675596
s3:smbd/open: pass smbd_server_connection as private_data to msg_file_was_renamed()
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
173ea71686
s3:smbd: register MSG_SMB_FILE_RENAME after the fork
...
The parent smbd doesn't need to handle this, as it doesn't
have any file handles open.
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
d492a437be
s3:smbd/conn_msg: pass smbd_server_connection as private_data to msg_force_tdis()
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
f426eb13c9
s3:smbd/blocking: pass smbd_server_connection as private_data to process_blocking_lock_cancel_message()
...
metze
2011-12-13 12:36:34 +01:00
Volker Lendecke
62249f755a
s3: Use pid_to_procid
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Dec 13 12:35:09 CET 2011 on sn-devel-104
2011-12-13 12:35:08 +01:00
Volker Lendecke
7a489ec780
s3: Remove a call to procid_self()
2011-12-13 11:00:55 +01:00
Volker Lendecke
c863d65d1b
s3: Remove a call to procid_self()
2011-12-13 11:00:55 +01:00
Volker Lendecke
80b4a3aadc
s3: Remove a call to procid_self()
2011-12-13 11:00:55 +01:00
Volker Lendecke
0f9d14820e
s3: Remove a bunch of calls to procid_self()
...
All callers to messaging_[re]init only used procid_self()
2011-12-12 21:50:25 +01:00
Stefan Metzmacher
77dc976b53
s3:smbd/close: pass smbd_server_connection to notify_deferred_opens()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 12 21:49:11 CET 2011 on sn-devel-104
2011-12-12 21:49:11 +01:00
Stefan Metzmacher
4d44f879e1
s3:smbd/clode: pass smbd_server_connection as private_data to msg_close_file()
...
metze
2011-12-12 20:14:41 +01:00
Stefan Metzmacher
d1e0997614
s3:smbd/blocking: pass smbd_server_connection as private_data to received_unlock_msg()
...
metze
2011-12-12 20:14:41 +01:00
Stefan Metzmacher
f59d358653
s3:smb2_lock: pass smbd_server_connection as private_data to received_unlock_msg()
...
metze
2011-12-12 20:14:41 +01:00
Stefan Metzmacher
763fe4216b
s3:smb2_server: use sconn->ev_ctx instead of sconn->smb2.event_ctx
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 12 16:08:59 CET 2011 on sn-devel-104
2011-12-12 16:08:59 +01:00
Stefan Metzmacher
7081d7e78f
s3:smb2_lock: avoid using server_event_context()
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
e7a100200b
s3:smbd/pipes: avoid passing server_event_context() as event context to np_{read,write}_send
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
bf8cce18c6
s3:smbd/process: avoid using server_event_context() for the forked echo handler
...
metze
2011-12-12 14:35:43 +01:00
Stefan Metzmacher
16cfc7243b
s3:smbd/process: avoid using server_event_context() for smbd_deferred_open_timer events
...
metze
2011-12-12 14:35:43 +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
Stefan Metzmacher
6811b47c99
s3:smbd/service: avoid using server_event_context() for notify_init()
...
metze
2011-12-12 14:35:43 +01:00