1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/docs-xml/smbdotconf
David Disseldorp 0b188e7784 s3-printing: Initiate pcap reload from parent smbd
Since commit 7022554, smbds share a printcap cache (printer_list.tdb),
therefore ordering of events between smbd processes is important when
updating printcap cache information. Consider the following two process
example:
1) smbd1 receives HUP or printcap cache time expiry
2) smbd1 checks whether pcap needs refresh, it does
3) smbd1 marks pcap as refreshed
4) smbd1 forks child1 to obtain cups printer info
5) smbd2 receives HUP or printcap cache time expiry
6) smbd2 checks whether pcap needs refresh, it does not (due to step 3)
7) smbd2 reloads printer shares prior to child1 completion (stale pcap)
8) child1 completion, pcap cache (printer_list.tdb) is updated by smbd1
9) smbd1 reloads printer shares based on new pcap information

In this case both smbd1 and smbd2 are reliant on the pcap update
performed on child1 completion.
The prior commit "reload shares after pcap cache fill" ensures that
smbd1 only reloads printer shares following pcap update, however smbd2
continues to present shares based on stale pcap data.

This commit addresses the above problem by driving pcap cache and
printer share updates from the parent smbd process.
1) smbd0 (parent) receives a HUP or printcap cache time expiry
2) smbd0 forks child0 to obtain cups printer info
3) child0 completion, pcap cache (printer_list.tdb) is updated by smbd0
4) smbd0 reloads printer shares
5) smbd0 notifies child smbds of pcap update via message_send_all()
6) child smbds read fresh pcap data and reload printer shares

This architecture has the additional advantage that only a single
process (the parent smbd) requests printer information from the printcap
backend.

Use time_mono in housekeeping functions As suggested by Björn Jacke.
2011-01-07 15:37:39 -08:00
..
base s3: Allow disabling of mdns registrations 2010-11-05 11:24:41 +00:00
browse s3-docs: Fix typos. 2010-01-20 13:34:50 +01:00
domain
filename Remove "store create time" code, cause create time to be stored 2009-11-17 14:55:02 -08:00
ldap s3:docs: Fix 'make manpages3'. 2009-12-14 08:58:50 +01:00
locking s3 docs: Reword posix locking text to answer a common question 2010-12-01 10:37:30 +01:00
logging s3: Make "debug hires timestamp" default to true 2009-11-02 10:08:39 +01:00
logon s3-docs: Fix Bug #4280. Shutdown scripts are called as root for privileged users. 2009-06-12 00:48:23 +02:00
misc s3-docs: more typos in rpc_server manpage. 2010-09-15 14:35:28 +02:00
printing s3-printing: Initiate pcap reload from parent smbd 2011-01-07 15:37:39 -08:00
protocol Add documentation for "smb2 max credits". 2010-12-11 02:14:07 +01:00
security s3-docs Add docs for 'client use spnego principal' and 'send spengo principal' 2010-12-10 16:08:30 +11:00
tuning Change strict allocate to default to true. (cherry picked from commit 820ea22a07b062b1717d35de8fa7051fc1067c3f) 2010-12-15 14:09:48 -08:00
vfs docs: "acl compatibility" is a global parameter. 2008-12-16 15:10:29 +01:00
winbind s3: Add a word of warning about "winbind use default domain" 2010-11-22 23:26:11 +01:00
wins
generate-context.xsl
generate-file-list.sh Fix documentation build: manpages, links in the HTML documents. 2008-04-24 23:40:51 +04:00