Volker Lendecke
94dc2c106b
s3: Lift smbd_messaging_context() from open_sockets_smbd()
2010-09-28 07:36:18 +02:00
Volker Lendecke
d26d79b640
s3: Remove talloc_autofree_context() from files.c
2010-09-28 07:36:18 +02:00
Volker Lendecke
3b2efdc7d7
s3: Remove talloc_autofree_context() from notify_internal_parent_init()
2010-09-26 17:36:40 +02:00
Volker Lendecke
34c0b166b6
s3: Remove talloc_autofree_context() from serverid_parent_init()
2010-09-26 03:29:28 +02:00
Volker Lendecke
8c55a9b459
s3: Remove talloc_autofree_context() from messaging_tdb_parent_init()
2010-09-26 03:29:28 +02:00
Michael Adam
d25b2adf34
s3:registry: move prototype from reg_init_full.c to its own header.
2010-09-21 08:52:06 +02:00
Günther Deschner
8e16d6dbdf
s3-build: only include ctdbd_conn.h where needed.
...
Guenther
2010-09-20 13:54:50 -07:00
Andreas Schneider
fc1a5dbffb
s3-spoolss: Don't leak memory on the session counter list.
...
Thanks Günther, please check.
2010-09-10 16:10:46 +02:00
Volker Lendecke
5648c3f67e
s3: messaging_ctdbd_connection() was only called with procid_self()
...
Eventually we'll get this right...
2010-08-31 17:07:41 +02:00
Volker Lendecke
e466bb4af4
s3: Remove smbd_server_fd()
...
This breaks the perfcol_onefs() build.
Tim, Steve, this use of smbd_server_fd is replacable by calls into
substitute.c. I don't have a onefs environment around to build a fix, so I've
decided to insert an #error, making it not compile. The fix should be pretty
obvious, you can get the socket data via "%I" and "%i" substitutions.
2010-08-29 21:55:25 +02:00
Volker Lendecke
e784e160ec
s3: Remove two uses of smbd_server_fd()
...
Actually, this is a bit cheating. But those two files depend on
smbd_server_conn anyway, it does not make things worse.
2010-08-29 21:55:25 +02:00
Volker Lendecke
6432383926
s3: Remove a use of smbd_server_fd() in smbd main()
...
The effect this might have is that we set the socket options a bit later in
inetd mode.
2010-08-29 21:55:24 +02:00
Volker Lendecke
4a58c640cc
s3: Set the client_id in substitute.c once
...
This never changes during a client connection's life, so we can set it
once.
2010-08-29 21:55:23 +02:00
Volker Lendecke
0a8d49575c
s3: Remove some references to smbd_server_fd()
2010-08-28 15:05:27 +02:00
Günther Deschner
aba1bf4b5e
s3-build: only include memcache.h where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Volker Lendecke
7b6835ec1d
s3: Add smbd_server_connection->client_id
2010-08-18 11:18:22 +02:00
Volker Lendecke
ac7b63384d
s3: Lift smbd_server_fd from reload_services()
2010-08-18 11:18:21 +02:00
Volker Lendecke
2f53d1deb7
s3: Add "sock" to smbd_server_connection
2010-08-16 22:39:16 +02:00
Volker Lendecke
96ae457023
s3: Remove get_client_fd()
2010-08-16 13:13:10 +02:00
Andreas Schneider
ca8db7fd63
s3-smbd: Publish nt printers.
...
Reloading of the printers requires rpc services up and running! The
first call in reload_services will be skipped.
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Andreas Schneider
aff002e829
s3-smbd: Move rpc services init to smbd parent.
...
The move to the parent makes it possible to use an internal rpc pipe
really early and as we migrated serveral parts of samba to rpc function
this is required. This should speed up the fork of a smbd a bit cause
the rpc services are already running.
We still have several problems here which aren't solved. We don't have a
dependency tree here. For example we have to make sure that the registry
is initialized before we can use the winreg pipe. The spoolss server
requires winreg, so we have to start winreg before we can start the
spoolss server. I'm sure there are more dependencies.
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Andreas Schneider
62a2a9e27f
s3-smbd: Regroup some init functions.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Andreas Schneider
e18039062c
s3-smbd: Cleanup the order of the init functions.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Andreas Schneider
120bd9775a
s3-smbd: Make sure the event context is initialized.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Volker Lendecke
d0ac5c69fb
s3: Remove the smbd_messaging_context from smb_conf_updated
2010-08-08 23:37:47 +02:00
Volker Lendecke
37d71a56fd
s3: Pass sconn to smbd_process
2010-08-08 23:37:47 +02:00
Volker Lendecke
bc760e79c8
s3: Lift the smbd_messaging_context from start_background_queue
2010-08-08 18:09:33 +02:00
Volker Lendecke
75b4dfd14d
s3: Lift the smbd_messaging_context from smbd_setup_sig_hup_handler
2010-08-08 18:09:33 +02:00
Volker Lendecke
39da717fe1
s3: Lift the smbd_messaging_context from reload_services
2010-08-08 18:09:33 +02:00
Volker Lendecke
b03bc8822b
s3: Remove a pointless "else"
2010-08-07 10:30:20 +02:00
Andreas Schneider
ce2a086119
s3-popt: Only include popt-common.h when needed.
2010-08-05 12:08:31 +02:00
Günther Deschner
c136b84f0d
s3-secrets: only include secrets.h when needed.
...
Guenther
2010-08-05 10:12:25 +02:00
Volker Lendecke
9cc52e8411
s3: Add msg_ctx to smbd_server_connection
...
It would be obvious to initialize this in smbd_init_globals(), but there the
messaging_context can't be initialized yet because we don't have smb.conf
loaded yet.
2010-07-05 11:06:23 +02:00
Volker Lendecke
300667e4a9
s3: Pass procid_self() explicitly to messaging_ctdbd_connection()
2010-07-05 11:06:23 +02:00
Volker Lendecke
849f72b254
s3: Create a unique id for the smbd parent
2010-07-05 11:06:23 +02:00
Volker Lendecke
7f0e6df883
s3: Pass the new server_id through reinit_after_fork
2010-07-04 17:29:23 +02:00
Volker Lendecke
b3194be286
s3: Fix some type-punned warnings
2010-07-04 16:41:14 +02:00
Volker Lendecke
b01958b0bd
s3: Remove serverid_[de]register_self
...
This removes some deep references to procid_self()
2010-07-04 16:41:14 +02:00
Jeremy Allison
afc6d2f46d
Don't use frame as the talloc ctx in open_schannel_session_store(), as this breaks running from inetd
...
(we free frame below). Use NULL instead.
Jeremy.
2010-06-25 13:29:00 -07:00
Jeremy Allison
86be54ec61
Change talloc_autofree_context() to frame in Andrew's schannel.tdb TDB_CLEAR_IF_FIRST
...
changes. Using talloc_autofree_context() has undesirable effects when forked
subprocesses exit.
Jeremy.
2010-06-25 12:02:08 -07:00
Andrew Bartlett
cfece16498
s3:schannel Open the schannel_state.tdb at startup
...
This will allow future TDB_CLEAR_IF_FIRST behaviour
Signed-off-by: Jeremy Allison <jra@samba.org>
2010-06-25 11:58:28 -07:00
Simo Sorce
5e576a53ab
s3:lib make server contexts generic
...
Pair-programmed-with: Andreas Schneider <asn@samba.org>
2010-06-10 17:30:45 -04:00
Jeremy Allison
b5638a0560
Don't use the autofree context for the globals. This causes child smbd's forked
...
by modules to crash due to destructors being called (found when using the vfs_aio_fork
module with smb2).
Jeremy.
2010-06-10 13:17:35 -07:00
Andrew Bartlett
59422efca9
s3:smbd move messaging_context and memcache into globals.c
...
This helps vfstest, which previously had duplicate copies of these functions.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:27 +02:00
Andrew Bartlett
6f279de0e6
s3:smbd split reload services/printers functions from server.c
...
This helps vfstest, as it previously had duplicate copies of these
functions.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:26 +02:00
Andrew Bartlett
8bc32513da
s3:smbd split smbd/server.c into smbd/server.c and smbd/server_exit.c
...
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:25 +02:00
Andreas Schneider
93ac516e15
s3-auth: Added a function to get the server_info from the system user.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 14:31:39 +02:00
Günther Deschner
fe31b67d5e
s3-registry: only include registry headers when really needed.
...
Guenther
2010-05-18 01:15:38 +02:00
Andrew Bartlett
426d92eedb
s3:smbd Remove calls to namecache_enable()
...
This only prints a DEBUG()
Andrew Bartlett
2010-05-13 10:12:26 +10:00
Günther Deschner
c6ebab846d
s3: only include gen_ndr headers where needed.
...
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:
ccache build w/o patch
real 4m21.529s
ccache build with patch
real 3m6.402s
pch build w/o patch
real 4m26.318s
pch build with patch
real 3m6.932s
Guenther
2010-05-06 00:22:59 +02:00