[SCM] Samba Shared Repository - branch master updated

2011-08-31 Thread Rusty Russell
The branch, master has been updated
   via  80f4a93 tdb2: add full LGPL headers
  from  cdce324 MAINTAINERS.txt: ping me about CCAN changes

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 80f4a936f27ff457855dbc21979fc4c0306ffb76
Author: Rusty Russell ru...@rustcorp.com.au
Date:   Thu Jul 21 14:44:50 2011 +0930

tdb2: add full LGPL headers

This is for SAMBA, so we follow their rules and do full license
headers.  Two files were missing them.

Signed-off-by: Rusty Russell ru...@rustcorp.com.au
(Imported from CCAN commit 58025731)

Autobuild-User: Rusty Russell ru...@rustcorp.com.au
Autobuild-Date: Wed Aug 31 09:52:43 CEST 2011 on sn-devel-104

---

Summary of changes:
 lib/tdb2/open.c |   17 +
 lib/tdb2/tdb.c  |   17 +
 2 files changed, 34 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/tdb2/open.c b/lib/tdb2/open.c
index c35598c..63076ec 100644
--- a/lib/tdb2/open.c
+++ b/lib/tdb2/open.c
@@ -1,3 +1,20 @@
+ /*
+   Trivial Database 2: opening and closing TDBs
+   Copyright (C) Rusty Russell 2010
+
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 3 of the License, or (at your option) any later version.
+
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, see http://www.gnu.org/licenses/.
+*/
 #include private.h
 #include ccan/hash/hash.h
 #include assert.h
diff --git a/lib/tdb2/tdb.c b/lib/tdb2/tdb.c
index 753ccb0..82b9c32 100644
--- a/lib/tdb2/tdb.c
+++ b/lib/tdb2/tdb.c
@@ -1,3 +1,20 @@
+ /*
+   Trivial Database 2: fetch, store and misc routines.
+   Copyright (C) Rusty Russell 2010
+
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 3 of the License, or (at your option) any later version.
+
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, see http://www.gnu.org/licenses/.
+*/
 #include private.h
 #ifndef _SAMBA_BUILD_
 #include ccan/asprintf/asprintf.h


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2011-08-31 Thread Christian Ambach
The branch, master has been updated
   via  59e8db0 s3:modules make perfcount_test loadable again
   via  4c2be3d s3:lib S-1-5-9 is Enterprise Domain Controllers
   via  8ecdb55 s3:lib remove duplicate entry for Anonymous Logon
   via  d387041 s3:lib add S-1-5-17 to well-known SID list
   via  0decdf8 s3:lib add some more well-known sids
   via  7475144 s3:lib add new well-known SIDs for BUILTIN
   via  b43c69b security.idl add new well-known SIDs
  from  80f4a93 tdb2: add full LGPL headers

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 59e8db0f060479be3a853ce718bcdf4f9ce0138d
Author: Christian Ambach a...@samba.org
Date:   Mon Aug 29 17:48:53 2011 +0200

s3:modules make perfcount_test loadable again

use expected 'init_samba_module' name for initializer function

Autobuild-User: Christian Ambach a...@samba.org
Autobuild-Date: Wed Aug 31 11:22:26 CEST 2011 on sn-devel-104

commit 4c2be3df0ef00ea1307fe022f8d156edeffb36a5
Author: Christian Ambach a...@samba.org
Date:   Mon Aug 29 17:46:06 2011 +0200

s3:lib S-1-5-9 is Enterprise Domain Controllers

and not ServerLogon

commit 8ecdb5595728b153ffb6d4527de9f6abd7795a31
Author: Christian Ambach a...@samba.org
Date:   Mon Aug 29 17:44:53 2011 +0200

s3:lib remove duplicate entry for Anonymous Logon

commit d3870413d10bea9aeca5d0c9d08d19b708070ed2
Author: Christian Ambach a...@samba.org
Date:   Mon Aug 29 17:42:45 2011 +0200

s3:lib add S-1-5-17 to well-known SID list

http://support.microsoft.com/kb/243330/en-us says the name is
This organization, but Windows 2008 says IUSR

Picking the Windows 2008 variant as 'This Organization' would
be duplicate to S-1-5-15

commit 0decdf8ace467f5df939db8291a4516a7dbb019a
Author: Christian Ambach a...@samba.org
Date:   Mon Aug 29 17:40:18 2011 +0200

s3:lib add some more well-known sids

add S-1-3-2/Creator Owner Server, S-1-3-3/Creator Group Server and
S-1-3-4/Owner Rights to the well-known SID list

commit 74751446a2a7dc323682d8eee23fddef9d353e16
Author: Christian Ambach a...@samba.org
Date:   Mon Aug 29 17:36:25 2011 +0200

s3:lib add new well-known SIDs for BUILTIN

Distributed COM Users, Cryptographic Operators, Event Log Readers
and Certificate Service DCOM Access were missing from the BUILTIN
well-known SID list

commit b43c69bedfc519e4e53d2c9b0ba2693bdaa1d67e
Author: Christian Ambach a...@samba.org
Date:   Mon Aug 29 17:34:57 2011 +0200

security.idl add new well-known SIDs

http://support.microsoft.com/kb/243330/en-us lists some new
well-known SIDS in the BUILTIN domain

---

Summary of changes:
 librpc/idl/security.idl  |8 
 source3/lib/util_builtin.c   |8 
 source3/lib/util_wellknown.c |7 +--
 source3/modules/perfcount_test.c |2 +-
 4 files changed, 22 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/librpc/idl/security.idl b/librpc/idl/security.idl
index 5760337..2b6efc5 100644
--- a/librpc/idl/security.idl
+++ b/librpc/idl/security.idl
@@ -269,6 +269,10 @@ interface security
const string SID_BUILTIN_PERFLOG_USERS  = S-1-5-32-559;
const string SID_BUILTIN_AUTH_ACCESS= S-1-5-32-560;
const string SID_BUILTIN_TS_LICENSE_SERVERS = S-1-5-32-561;
+   const string SID_BUILTIN_DISTRIBUTED_COM_USERS  = S-1-5-32-562;
+   const string SID_BUILTIN_CRYPTO_OPERATORS   = S-1-5-32-569;
+   const string SID_BUILTIN_EVENT_LOG_READERS  = S-1-5-32-573;
+   const string SID_BUILTIN_CERT_SERV_DCOM_ACCESS  = S-1-5-32-574;
 
/* SECURITY_NT_SERVICE */
const string NAME_NT_SERVICE= NT SERVICE;
@@ -316,6 +320,10 @@ interface security
const int BUILTIN_RID_PERFLOG_USERS = 559;
const int BUILTIN_RID_AUTH_ACCESS   = 560;
const int BUILTIN_RID_TS_LICENSE_SERVERS= 561;
+   const int BUILTIN_RID_DISTRIBUTED_COM_USERS = 562;
+   const int BUILTIN_RID_CRYPTO_OPERATORS  = 569;
+   const int BUILTIN_RID_EVENT_LOG_READERS = 573;
+   const int BUILTIN_RID_CERT_SERV_DCOM_ACCESS = 574;
 
 /
  This is a list of privileges reported by a WIndows 2008 R2 DC
diff --git a/source3/lib/util_builtin.c b/source3/lib/util_builtin.c
index b370a76..3aae509 100644
--- a/source3/lib/util_builtin.c
+++ b/source3/lib/util_builtin.c
@@ -52,6 +52,14 @@ static const struct rid_name_map builtin_aliases[] = {
Windows Authorization Access Group },
{ BUILTIN_RID_TS_LICENSE_SERVERS,
Terminal Server License Servers },
+   { BUILTIN_RID_DISTRIBUTED_COM_USERS,
+   Distributed COM 

[SCM] Samba Shared Repository - branch master updated

2011-08-31 Thread Günther Deschner
The branch, master has been updated
   via  485da3e s3-waf: allow unresolved symbols in some idmap and nss_info 
modules.
   via  54d8af9 s3-waf: add missing tdb dependency to idmap_tdb2 module.
   via  fea278b s3-waf: convert nss_info subsystem into a private library.
   via  d292bc0 s4-smbtorture: For now, skip trusted domain auth validation 
tests against the sambas.
   via  247851d s4-smbtorture: Add trust password to CreateTrust test
   via  1473e64 s3-lsa: Add _lsa_SetInformationTrustedDomain() and related 
calls
   via  34d5705 s4-smbtorture: Add tests for 
lsaQueryTrustedDomainInfoByName() and lsaSetTrustedDomainInfoByName()
   via  579cb3d s3-lsa: Update _lsa_QueryTrustedDomainInfo()
   via  751e7d4 s3-pdb_ipa: Add supprted encryption types to struct 
pdb_trusted_domain
   via  4f6de78 s3-pdb_ipa: Add posix offset to struct pdb_trusted_domain
   via  f864767 s3-ldap: Add Posix offset and encryption types to LDAP 
schema
   via  1744be0 s3-ldap: Add sambaTrustForestTrustInfo to NDS LDAP schema 
(again)
   via  3e2711c s3-lsa: Fix access mapping in_lsa_OpenTrustedDomain_base()
   via  15c7a87 s3-lsa: Fix typo and use right pdb interface
   via  bb86062 s3-pdb_ipa: Derive domain GUID from SID
  from  59e8db0 s3:modules make perfcount_test loadable again

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 485da3ecff87edc47cc6b99ada588d6113541a3f
Author: Günther Deschner g...@samba.org
Date:   Wed Aug 31 12:45:10 2011 +0200

s3-waf: allow unresolved symbols in some idmap and nss_info modules.

Guenther

Autobuild-User: Günther Deschner g...@samba.org
Autobuild-Date: Wed Aug 31 14:27:31 CEST 2011 on sn-devel-104

commit 54d8af972231adf05e0f1482d23ce1a449f4e6ee
Author: Günther Deschner g...@samba.org
Date:   Wed Aug 31 12:44:35 2011 +0200

s3-waf: add missing tdb dependency to idmap_tdb2 module.

Guenther

commit fea278bbed50cda5a41abae2ee750b3be889fc4c
Author: Günther Deschner g...@samba.org
Date:   Wed Aug 31 12:43:57 2011 +0200

s3-waf: convert nss_info subsystem into a private library.

Guenther

commit d292bc07104fe6dc90fb143e630f2e259fbcb7c7
Author: Günther Deschner g...@samba.org
Date:   Wed Aug 31 12:42:51 2011 +0200

s4-smbtorture: For now, skip trusted domain auth validation tests against 
the sambas.

Guenther

commit 247851d6be428f73170e315121c335190c780736
Author: Sumit Bose sb...@redhat.com
Date:   Mon Aug 22 12:34:36 2011 +0200

s4-smbtorture: Add trust password to CreateTrust test

Instead of using empty authinfo and authinfo_internal structures a trust
password is added to these structures. After creating the trust the trust
account is used to validate that the trust password is set correctly.

Signed-off-by: Günther Deschner g...@samba.org

commit 1473e64c7f54146a75604410ddc84f7e2889
Author: Sumit Bose sb...@redhat.com
Date:   Tue Jun 28 14:37:44 2011 +0200

s3-lsa: Add _lsa_SetInformationTrustedDomain() and related calls

The following LSA calls are added:
 - _lsa_SetInformationTrustedDomain()
 - _lsa_SetTrustedDomainInfo()
 -_lsa_SetTrustedDomainInfoByName()

Signed-off-by: Günther Deschner g...@samba.org

commit 34d57058ff014d073bbd5443a83e22bcb2abf0b2
Author: Sumit Bose sb...@redhat.com
Date:   Mon Jun 20 14:39:01 2011 +0200

s4-smbtorture: Add tests for lsaQueryTrustedDomainInfoByName() and 
lsaSetTrustedDomainInfoByName()

Signed-off-by: Günther Deschner g...@samba.org

commit 579cb3dd339c340470daecc3c39eab156a28894d
Author: Sumit Bose sb...@redhat.com
Date:   Wed Jul 6 16:06:54 2011 +0200

s3-lsa: Update _lsa_QueryTrustedDomainInfo()

Signed-off-by: Günther Deschner g...@samba.org

commit 751e7d4d33414d60971cdc9546d4d58e1b42a794
Author: Sumit Bose sb...@redhat.com
Date:   Thu Jun 23 17:52:06 2011 +0200

s3-pdb_ipa: Add supprted encryption types to struct pdb_trusted_domain

Signed-off-by: Günther Deschner g...@samba.org

commit 4f6de78a12a2b9adf4532e7e54637bf29c5d1067
Author: Sumit Bose sb...@redhat.com
Date:   Thu Jun 23 17:42:52 2011 +0200

s3-pdb_ipa: Add posix offset to struct pdb_trusted_domain

Signed-off-by: Günther Deschner g...@samba.org

commit f864767034f5e463ce3f06e13920dedf55f494e4
Author: Sumit Bose sb...@redhat.com
Date:   Fri Aug 12 17:46:23 2011 +0200

s3-ldap: Add Posix offset and encryption types to LDAP schema

Signed-off-by: Günther Deschner g...@samba.org

commit 1744be0a84d2e8a12725b6db01099000792194e6
Author: Sumit Bose sb...@redhat.com
Date:   Fri Aug 19 11:49:21 2011 +0200

s3-ldap: Add sambaTrustForestTrustInfo to NDS LDAP schema (again)

The related attributes and objectclass were accidentally remove by commit
d4c30a5ffbeab75506bf1ad5d8d5da48e3f4d41c

Signed-off-by: Günther Deschner g...@samba.org


[SCM] Samba Shared Repository - branch master updated

2011-08-31 Thread Andreas Schneider
The branch, master has been updated
   via  da23473 s3-rpc_server: Disable epmapper by default.
   via  6d9eb66 docs: Add documentation for the rpc_daemon parametric 
option.
   via  40006cf doc: Reflect the latest changes to the rpc_server option.
  from  485da3e s3-waf: allow unresolved symbols in some idmap and nss_info 
modules.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit da2347379e04caf5b7bbd3a6704b03e03c8bf30a
Author: Andreas Schneider a...@samba.org
Date:   Wed Aug 31 14:53:52 2011 +0200

s3-rpc_server: Disable epmapper by default.

We need more testing in the real world. We need to be sure that if a
Windows client can access port 135 it doesn't require that a service is
available via ncacn_ip_tcp. If possible please enable it using the
following smb.conf options for testing:

  rpc_daemon:epmd = fork
  rpc_server:epmapper = external

Autobuild-User: Andreas Schneider a...@cryptomilk.org
Autobuild-Date: Wed Aug 31 16:29:20 CEST 2011 on sn-devel-104

commit 6d9eb66f29756f8df913b0057a8e66aa6f9acadd
Author: Simo Sorce i...@samba.org
Date:   Tue Aug 30 17:11:48 2011 -0400

docs: Add documentation for the rpc_daemon parametric option.

commit 40006cf2127df247dd6fc2200b3fac4021c1c9d8
Author: Andreas Schneider a...@samba.org
Date:   Wed Aug 31 12:13:22 2011 +0200

doc: Reflect the latest changes to the rpc_server option.

bug #8425.

---

Summary of changes:
 docs-xml/smbdotconf/misc/rpcdaemon.xml |   69 ++
 docs-xml/smbdotconf/misc/rpcserver.xml |   84 +---
 source3/rpc_server/rpc_config.c|4 +-
 3 files changed, 137 insertions(+), 20 deletions(-)
 create mode 100644 docs-xml/smbdotconf/misc/rpcdaemon.xml


Changeset truncated at 500 lines:

diff --git a/docs-xml/smbdotconf/misc/rpcdaemon.xml 
b/docs-xml/smbdotconf/misc/rpcdaemon.xml
new file mode 100644
index 000..e84db21
--- /dev/null
+++ b/docs-xml/smbdotconf/misc/rpcdaemon.xml
@@ -0,0 +1,69 @@
+samba:parameter name=rpc_daemon
+ context=G
+type=string
+advanced=1 print=1
+ xmlns:samba=http://www.samba.org/samba/DTD/samba-doc;
+description
+   para
+   Defines whether to use the embedded code or start a separate daemon
+   for the defined rpc services.
+   The rpc_daemon prefix must be followed by the server name, and a value.
+   /para
+
+   para
+   Two possible values are currently supported:
+   command moreinfo=nonedisabled/command
+   command moreinfo=nonefork/command
+   /para
+
+   para
+   The classic method is to run rpc services as internal daemons
+   embedded in smbd, therefore the external daemons are
+   emphasisdisabled/emphasis by default.
+   /para
+
+   para
+   Choosing the emphasisfork/emphasis option will cause samba to fork
+   a separate proces for each daemon configured this way. Each daemon may
+   in turn fork a number of children used to handle requests from multiple
+   smbds and direct tcp/ip connections (if the Endpoint Mapper is
+   enabled). Communication with smbd happens over named pipes and require
+   that said pipes are forward to the external daemon (see smbconfoption
+   name=rpc_server/).
+   /para
+
+   para
+   Forked RPC Daemons support dynamically forking children to handle
+   connections. The heuristics about how many children to keep around and
+   how fast to allow them to fork and also how many clients each child is
+   allowed to handle concurrently is defined by parametrical options named
+   after the daemon.
+   Five options are currently supported:
+   command moreinfo=noneprefork_min_children/command
+   command moreinfo=noneprefork_max_children/command
+   command moreinfo=noneprefork_spawn_rate/command
+   command moreinfo=noneprefork_max_allowed_clients/command
+   command moreinfo=noneprefork_child_min_life/command
+
+   To set one of these options use the follwing syntax:
+   programlisting
+   damonname:prefork_min_children = 5
+   /programlisting
+   /para
+
+   para
+   Samba includes separate daemons for spoolss and the lsarpc/lsass,
+   netlogon and samr pipes. Currently three daemons are available and they
+   are called:
+   command moreinfo=noneempd/command
+   command moreinfo=nonelsasd/command
+   command moreinfo=nonespoolssd/command
+   Example:
+   programlisting
+   rpc_daemon:spoolssd = fork
+   /programlisting
+   /para
+/description
+
+value type=defaultdisabled/value
+/samba:parameter
diff --git 

[SCM] Samba Shared Repository - branch master updated

2011-08-31 Thread Volker Lendecke
The branch, master has been updated
   via  7810746 s3: Fix bug 8334, do not fork the echo handler for smb2
  from  da23473 s3-rpc_server: Disable epmapper by default.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 781074664deecec5c0067fccf1baee602fd18a83
Author: Volker Lendecke v...@samba.org
Date:   Wed Aug 31 15:06:35 2011 +0200

s3: Fix bug 8334, do not fork the echo handler for smb2

If a smb1 negprot negotiated smb2 we forked the echo responder. This will
eventually lead to a panic from

[2011/08/30 10:33:29.212578,  0, pid=3846917] 
smbd/smb2_server.c:243(smbd_smb2_request_create)
  Invalid SMB packet: first request: 0x0009

because from the echo responder we always read using the normal smb1 
protocol
handling routine. If that is a bit down the smb2 stream, we get a 
non-negprot
packet and panic.

BTW, the echo responder is not required for smb2 anyway, Microsoft confirmed
that it probes the server liveness using TCP keepalives and not smb2 echo
requests.

Autobuild-User: Volker Lendecke vlen...@samba.org
Autobuild-Date: Wed Aug 31 17:58:48 CEST 2011 on sn-devel-104

---

Summary of changes:
 source3/smbd/negprot.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index a587442..236b4d6 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -743,7 +743,8 @@ void reply_negprot(struct smb_request *req)
 
TALLOC_FREE(cliprotos);
 
-   if (lp_async_smb_echo_handler()  !fork_echo_handler(sconn)) {
+   if (lp_async_smb_echo_handler()  (get_Protocol()  PROTOCOL_SMB2) 
+   !fork_echo_handler(sconn)) {
exit_server(Failed to fork echo handler);
}
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2011-08-31 Thread Günther Deschner
The branch, master has been updated
   via  fe6c565 s3-waf: fix unresolved symbols in the group policy client 
side extensions subsystem.
   via  fb8d63b s3-waf: convert libgpo into a private library.
   via  028f247 s3-waf: allow undefined symbols in idmap_rid module.
  from  7810746 s3: Fix bug 8334, do not fork the echo handler for smb2

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit fe6c56524075e1ca8e95d531dc1945c0ff6fa783
Author: Günther Deschner g...@samba.org
Date:   Wed Aug 31 18:19:40 2011 +0200

s3-waf: fix unresolved symbols in the group policy client side extensions 
subsystem.

Guenther

Autobuild-User: Günther Deschner g...@samba.org
Autobuild-Date: Wed Aug 31 19:48:39 CEST 2011 on sn-devel-104

commit fb8d63bf82eee9103326aac8829394ff8ec65449
Author: Günther Deschner g...@samba.org
Date:   Wed Aug 31 18:19:13 2011 +0200

s3-waf: convert libgpo into a private library.

Guenther

commit 028f2471e7d20ff80301a01534738ce9e7101b86
Author: Günther Deschner g...@samba.org
Date:   Wed Aug 31 17:56:51 2011 +0200

s3-waf: allow undefined symbols in idmap_rid module.

Guenther

---

Summary of changes:
 source3/libgpo/gpext/wscript_build |2 +-
 source3/winbindd/wscript_build |1 +
 source3/wscript_build  |   11 ++-
 3 files changed, 8 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libgpo/gpext/wscript_build 
b/source3/libgpo/gpext/wscript_build
index 3c835dd..fc44eb8 100644
--- a/source3/libgpo/gpext/wscript_build
+++ b/source3/libgpo/gpext/wscript_build
@@ -8,7 +8,7 @@ GPEXT_SRC = '''../../../libgpo/gpext/gpext.c'''
 
 bld.SAMBA3_SUBSYSTEM('gpext',
 source=GPEXT_SRC,
-deps='samba-util',
+deps='samba-util samba3core libgpo',
 vars=locals())
 
 bld.SAMBA3_MODULE('gpext_registry',
diff --git a/source3/winbindd/wscript_build b/source3/winbindd/wscript_build
index 5c9e096..d59cece 100644
--- a/source3/winbindd/wscript_build
+++ b/source3/winbindd/wscript_build
@@ -56,6 +56,7 @@ bld.SAMBA3_MODULE('idmap_ad',
 
 bld.SAMBA3_MODULE('idmap_rid',
  subsystem='idmap',
+ allow_undefined_symbols=True,
  source=IDMAP_RID_SRC,
  init_function='',
  internal_module=bld.SAMBA3_IS_STATIC_MODULE('idmap_rid'),
diff --git a/source3/wscript_build b/source3/wscript_build
index d04f519..a144549 100755
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -717,10 +717,11 @@ bld.SAMBA3_SUBSYSTEM('LIBMSRPC_GEN',
 deps='''ndr-standard NDR_DSSETUP NDR_SPOOLSS''',
 vars=locals())
 
-bld.SAMBA3_SUBSYSTEM('LIBGPO',
-source='${LIBGPO_SRC}',
-deps='gpext talloc',
-vars=locals())
+bld.SAMBA3_LIBRARY('libgpo',
+   source='${LIBGPO_SRC}',
+   deps='talloc ads TOKEN_UTIL gpext',
+   vars=locals(),
+   private_library=True)
 
 bld.SAMBA3_SUBSYSTEM('AVAHI',
 source=AVAHI_SRC,
@@ -1184,7 +1185,7 @@ bld.SAMBA3_BINARY('client/smbclient' + bld.env.suffix3,
 bld.SAMBA3_BINARY('net',
  source=NET_SRC,
  deps='''talloc tdb_compat netapi addns cap intl popt_samba3 
pdb libsmb smbd_shim
- param wbclient param KRBCLIENT LIBMSRPC_GEN msrpc3 LIBGPO ads 
LIBADS_SERVER LIBADS_PRINTER
+ param wbclient param KRBCLIENT LIBMSRPC_GEN msrpc3 libgpo ads 
LIBADS_SERVER LIBADS_PRINTER
  LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
  LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DCUTIL
  REGFIO NDR_NTPRINTING RPC_NDR_WINREG


-- 
Samba Shared Repository


[SCM] build.samba.org - branch master updated

2011-08-31 Thread Björn Jacke
The branch, master has been updated
   via  f36e05d use www.samba.org as server for the css
  from  6767f4c try and find config.h in one more location

http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master


- Log -
commit f36e05db849e06f313c4e2d9672a21228441f696
Author: Björn Jacke b...@sernet.de
Date:   Wed Aug 31 21:00:04 2011 +0200

use www.samba.org as server for the css

---

Summary of changes:
 buildfarm/web/__init__.py |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildfarm/web/__init__.py b/buildfarm/web/__init__.py
index 84e7bb3..904733c 100755
--- a/buildfarm/web/__init__.py
+++ b/buildfarm/web/__init__.py
@@ -906,7 +906,7 @@ class BuildFarmApp(object):
 yield meta name='description' contents='Home of the Samba Build 
Farm, the automated testing facility.'/\n
 yield meta name='robots' contents='noindex'/
 yield link rel='stylesheet' href='/build_farm.css' 
type='text/css' media='all'/
-yield link rel='stylesheet' 
href='http://master.samba.org/samba/style/common.css' type='text/css' 
media='all'/
+yield link rel='stylesheet' 
href='http://www.samba.org/samba/style/common.css' type='text/css' 
media='all'/
 yield link rel='shortcut icon' 
href='http://www.samba.org/samba/images/favicon.ico'/
 yield   /head
 yield body


-- 
build.samba.org


[SCM] Samba Shared Repository - branch master updated

2011-08-31 Thread Jeremy Allison
The branch, master has been updated
   via  786fe9f Fix bug 8429 - Compound SMB2 requests on an IPC connection 
can corrupt the reply stream.
   via  726b468 Based on metze's fix for Bug 8407 - SMB2 server can return 
requests out-of-order when processing a compound request. (cherry picked from 
commit 19db1c98c6ba3cb5e883e16e865c44900ce17444)
   via  0d450d1 s3:smb2_server: keep compound_related on struct 
smbd_smb2_request
  from  fe6c565 s3-waf: fix unresolved symbols in the group policy client 
side extensions subsystem.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 786fe9fab223723e4d2340f285592b2a44945d73
Author: Jeremy Allison j...@samba.org
Date:   Tue Aug 30 17:37:19 2011 -0700

Fix bug 8429 - Compound SMB2 requests on an IPC connection can corrupt the 
reply stream.

Autobuild-User: Jeremy Allison j...@samba.org
Autobuild-Date: Wed Aug 31 21:18:11 CEST 2011 on sn-devel-104

commit 726b4685aa25b0b3b4470bfec5d514fb2db7a95e
Author: Jeremy Allison j...@samba.org
Date:   Fri Aug 26 14:23:26 2011 -0700

Based on metze's fix for Bug 8407 - SMB2 server can return requests 
out-of-order when processing a compound request. (cherry picked from commit 
19db1c98c6ba3cb5e883e16e865c44900ce17444)

commit 0d450d166bab952daf37d922e5c2e5cac16f1cc3
Author: Stefan Metzmacher me...@samba.org
Date:   Thu Aug 25 23:33:41 2011 +0200

s3:smb2_server: keep compound_related on struct smbd_smb2_request

metze
(cherry picked from commit cda93f04eb4e7e975b192a5fd33275ec638140ac)

---

Summary of changes:
 source3/smbd/globals.h |2 +
 source3/smbd/smb2_server.c |   76 +--
 2 files changed, 60 insertions(+), 18 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index b9bd212..35c44ee 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -355,6 +355,7 @@ struct smbd_smb2_request {
bool do_signing;
bool async;
bool cancelled;
+   bool compound_related;
 
/* fake smb1 request. */
struct smb_request *smb1req;
@@ -605,6 +606,7 @@ struct smbd_server_connection {
uint32_t credits_granted;
uint32_t max_credits;
struct bitmap *credits_bitmap;
+   bool compound_related_in_progress;
} smb2;
 };
 
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 6fc4b5d..fa4801c 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -360,7 +360,6 @@ static NTSTATUS smbd_smb2_request_validate(struct 
smbd_smb2_request *req)
 {
int count;
int idx;
-   bool compound_related = false;
 
count = req-in.vector_count;
 
@@ -408,7 +407,7 @@ static NTSTATUS smbd_smb2_request_validate(struct 
smbd_smb2_request *req)
 * compounded requests
 */
if (flags  SMB2_HDR_FLAG_CHAINED) {
-   compound_related = true;
+   req-compound_related = true;
}
} else if (idx  4) {
 #if 0
@@ -421,13 +420,13 @@ static NTSTATUS smbd_smb2_request_validate(struct 
smbd_smb2_request *req)
 * all other requests should match the 2nd one
 */
if (flags  SMB2_HDR_FLAG_CHAINED) {
-   if (!compound_related) {
+   if (!req-compound_related) {
req-next_status =
NT_STATUS_INVALID_PARAMETER;
return NT_STATUS_OK;
}
} else {
-   if (compound_related) {
+   if (req-compound_related) {
req-next_status =
NT_STATUS_INVALID_PARAMETER;
return NT_STATUS_OK;
@@ -887,11 +886,25 @@ NTSTATUS smbd_smb2_request_pending_queue(struct 
smbd_smb2_request *req,
if (!NT_STATUS_IS_OK(status)) {
return status;
}
+
+   /*
+* We're splitting off the last SMB2
+* request in a compound set, and the
+* smb2_send_async_interim_response()
+* call above just sent all the replies
+* for the previous SMB2 requests in
+* this compound set. So we're no longer
+* in the compound_related_in_progress
+* state, and this is no longer a compound
+* request.
+   

[SCM] build.samba.org - branch master updated

2011-08-31 Thread Andrew Tridgell
The branch, master has been updated
   via  584a1fe the ppc64 box 'tridge' needs the python devel headers 
installed
  from  f36e05d use www.samba.org as server for the css

http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master


- Log -
commit 584a1fe97bf0488f4ee1e02d79d089e939524f88
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Sep 1 08:28:19 2011 +1000

the ppc64 box 'tridge' needs the python devel headers installed

---

Summary of changes:
 gwen.fns = tridge.fns |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
 copy gwen.fns = tridge.fns (94%)


Changeset truncated at 500 lines:

diff --git a/gwen.fns b/tridge.fns
similarity index 94%
copy from gwen.fns
copy to tridge.fns
index a9ee75a..03f5d9d 100644
--- a/gwen.fns
+++ b/tridge.fns
@@ -3,7 +3,7 @@ per_run_hook
 global_lock
 
 . install_python.fns
-compilers=gcc cc
+compilers=gcc
 
 for compiler in $compilers; do
. common.fns


-- 
build.samba.org


[SCM] CTDB repository - branch master updated - ctdb-1.10-468-g71080ad

2011-08-31 Thread Ronnie Sahlberg
The branch, master has been updated
   via  71080adfe0828e15bf2f4b0bee7d52e06fff3449 (commit)
   via  1bb814f012cb6ce436f8748b06602e8d6fae8822 (commit)
   via  999c68948da1492ac4d728c6bf79ad4921d9e840 (commit)
   via  f527ffb55b514b5cb4df3471a0e17ab71307e8a1 (commit)
   via  1c9dadf02ca649e3f09d9edd778bf13e001aa849 (commit)
   via  dda44d026e0c1b02feb02185b8c200a542be341a (commit)
   via  edc34d01a1ad83b1335c976593a006166b196569 (commit)
   via  698af79545986cf788686feb06c4677a10eec770 (commit)
   via  69e240e15488e228c0232fdc8804af778cb4e6fc (commit)
   via  8f8dc5636436db28ce7d0edd706a4adf2624e71b (commit)
   via  80f14e590242b14829c6309ee908af0f2d33be1e (commit)
   via  0446eaa7798fd0ddf8d8f067c56d19892a13a317 (commit)
   via  c490024aba39cf94cbc9f8f41ecb3d336b1c82a8 (commit)
   via  f7de037e3be2e9910bee644dd1e93bae4912a194 (commit)
   via  20885d592040eb3945524c558b593a1d50a57b43 (commit)
   via  b231aa629b909a7dfd071236c7e730e3cc4a1a54 (commit)
   via  0a08068f736efe56b4799e1f1f90539d257deb71 (commit)
   via  47f2843b4db767bcc724d8f972e0c2a850d5826f (commit)
   via  9e3e6ab3edf0f79d5973eb39ed843d3c369c665d (commit)
   via  3852c091f5e0ecba06b7131ca04b73a0cd632f23 (commit)
   via  ef6131ecb068f7d8402cc782359509ba54b5adb0 (commit)
   via  a1d424045c53f5b148952eade6161af8248ed4df (commit)
   via  fcf40500c2158dfbe2390fad7bf0614cc575df14 (commit)
   via  1d02e3c6a7fb5ad5edb21298deba415ba9519f3d (commit)
   via  6ff9545a0fd58f0728b769c7b36d3b6ab7366321 (commit)
   via  59a1d54bcc15058f7b69e8596b32b26427a3ae57 (commit)
   via  9c6fd7d21c99e605e20620c5c6b4e695c02af771 (commit)
   via  e9bdfd43af3ed28a7f69a36e3fb037f252a23869 (commit)
   via  aedff41ee1df0a1a573476844993fa8eda2f34bf (commit)
   via  f19ba38e382034fba769145d0bfc81b2c2941563 (commit)
   via  ea0db472c2ce138c723aa7e633b72ac9d8b8a6a3 (commit)
   via  fb3e123b097d9e36d281c3ab4f3e9a4799fa27bc (commit)
   via  08eeb788523afe19760b00f40339b702eb193712 (commit)
   via  a779d83a6213e2ba21621f7e090964428f89422d (commit)
   via  5be904fb1fbd546618d25509b41ab836db62a70a (commit)
   via  220578bfd3507152b29ba4c28942f9d5e8733886 (commit)
   via  0564717fcc1e21688ae5dacbd437fd493bcb8853 (commit)
   via  cc5bc1948dcbe8b8b25185260927b94a4b529174 (commit)
   via  36de7e7fd6dfeed61ef9977b8d5b568f90a9707b (commit)
   via  e8d9c0b251c84d6fdf6ea7d972e5f7d1d0222f9b (commit)
   via  61000e38d6016e58f67e292393756d0bd5262ae5 (commit)
   via  ef71b8290ae49117d7bcc7166598b77cb64cc8a0 (commit)
   via  1ccdae79b64b236fc27f4653606429d73c9c3595 (commit)
  from  392363c04185f47a826fc6ed95038342be2150bf (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master


- Log -
commit 71080adfe0828e15bf2f4b0bee7d52e06fff3449
Merge: 1bb814f012cb6ce436f8748b06602e8d6fae8822 
999c68948da1492ac4d728c6bf79ad4921d9e840
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu Sep 1 08:55:23 2011 +1000

Merge remote branch 'martins/tests'

commit 1bb814f012cb6ce436f8748b06602e8d6fae8822
Merge: a779d83a6213e2ba21621f7e090964428f89422d 
dda44d026e0c1b02feb02185b8c200a542be341a
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu Sep 1 08:52:48 2011 +1000

Merge remote branch 'martins/eventscripts'

commit 999c68948da1492ac4d728c6bf79ad4921d9e840
Author: Martin Schwenke mar...@meltin.net
Date:   Wed Aug 31 17:29:14 2011 +1000

Tests - eventscripts - add some multievent tests

Running ./run_tests -s simple/* multievent/* results in a stupid
summary.  Will need to work on that...

Signed-off-by: Martin Schwenke mar...@meltin.net

commit f527ffb55b514b5cb4df3471a0e17ab71307e8a1
Author: Martin Schwenke mar...@meltin.net
Date:   Wed Aug 31 17:27:05 2011 +1000

Tests - eventscripts - allow ctdb scriptstatus output to be primed

Signed-off-by: Martin Schwenke mar...@meltin.net

commit 1c9dadf02ca649e3f09d9edd778bf13e001aa849
Merge: edc34d01a1ad83b1335c976593a006166b196569 
dda44d026e0c1b02feb02185b8c200a542be341a
Author: Martin Schwenke mar...@meltin.net
Date:   Wed Aug 31 15:38:55 2011 +1000

Merge branch 'eventscripts' into tests

commit dda44d026e0c1b02feb02185b8c200a542be341a
Author: Martin Schwenke mar...@meltin.net
Date:   Wed Aug 31 15:34:43 2011 +1000

Eventscripts - enhance ctdb_replay_monitor_status()

Print useful output and return a suitable exit code.

The DISABLED and TIMEDOUT statuses use fake negative return codes, and
these can't be faked from the shell.  So we map DISABLED to OK and
TIMEDOUT to ERROR - this should avoid nearly all surprises.  When we
do this we add a note to the beginning of the output.  The alternative
is to fix ctdbd to use only codes that can actually be returned by
shell scripts.  However, the reason for using negative 

[SCM] CTDB repository - branch master-readonly-records updated - ctdb-1.10-453-g908a07c

2011-08-31 Thread Ronnie Sahlberg
The branch, master-readonly-records has been updated
   via  908a07c42e5135a3ba30a625fc4f4e4916de197a (commit)
   via  4cac9ad7d9c9ca657a247a6c215476399c7d2210 (commit)
   via  7462761638d25880ad46024ad4ef21667eb99a98 (commit)
  from  8d363d3ce105b78c94f8e50184b6579b25b237f6 (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master-readonly-records


- Log -
commit 908a07c42e5135a3ba30a625fc4f4e4916de197a
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu Sep 1 11:08:18 2011 +1000

ReadOnly: add a new control to activate readonly lock capability for a 
database.
let all databases default to not support this  until enabled through this 
control

commit 4cac9ad7d9c9ca657a247a6c215476399c7d2210
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu Sep 1 10:28:15 2011 +1000

ReadOnly: add a readonly flag to the getdbmap control and show the readonly 
setting in ctdb getdbmap output

commit 7462761638d25880ad46024ad4ef21667eb99a98
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu Sep 1 10:21:55 2011 +1000

ReadOnly: Change the ctdb_db structure to keep a uint8_t for flags instead 
of a boolean for
the persistent flag.
This is the same size as the original boolean but allows ut to add 
additional flags for the database

---

Summary of changes:
 client/ctdb_client.c  |   42 
 include/ctdb_client.h |   10 ++-
 include/ctdb_private.h|2 +
 include/ctdb_protocol.h   |1 +
 server/ctdb_control.c |   10 +++
 server/ctdb_ltdb_server.c |   67 +---
 server/ctdb_recover.c |8 +-
 server/ctdb_recoverd.c|9 +++---
 tools/ctdb.c  |   56 +
 tools/ctdb_vacuum.c   |4 +-
 10 files changed, 160 insertions(+), 49 deletions(-)


Changeset truncated at 500 lines:

diff --git a/client/ctdb_client.c b/client/ctdb_client.c
index f9d5e24..b3061a8 100644
--- a/client/ctdb_client.c
+++ b/client/ctdb_client.c
@@ -4593,3 +4593,45 @@ ctdb_ctrl_updaterecord(struct ctdb_context *ctdb, 
TALLOC_CTX *mem_ctx, struct ti
return ctdb_ctrl_updaterecord_recv(ctdb, state);
 }
 
+
+
+
+
+
+/*
+  set a database to be readonly
+ */
+struct ctdb_client_control_state *
+ctdb_ctrl_set_db_readonly_send(struct ctdb_context *ctdb, uint32_t destnode, 
uint32_t dbid)
+{
+   TDB_DATA data;
+
+   data.dptr = (uint8_t *)dbid;
+   data.dsize = sizeof(dbid);
+
+   return ctdb_control_send(ctdb, destnode, 0, 
+  CTDB_CONTROL_SET_DB_READONLY, 0, data, 
+  ctdb, NULL, NULL);
+}
+
+int ctdb_ctrl_set_db_readonly_recv(struct ctdb_context *ctdb, struct 
ctdb_client_control_state *state)
+{
+   int ret;
+   int32_t res;
+
+   ret = ctdb_control_recv(ctdb, state, ctdb, NULL, res, NULL);
+   if (ret != 0 || res != 0) {
+ DEBUG(DEBUG_ERR,(__location__  ctdb_ctrl_set_db_readonly_recv failed 
 ret:%d res:%d\n, ret, res));
+   return -1;
+   }
+
+   return 0;
+}
+
+int ctdb_ctrl_set_db_readonly(struct ctdb_context *ctdb, uint32_t destnode, 
uint32_t dbid)
+{
+   struct ctdb_client_control_state *state;
+
+   state = ctdb_ctrl_set_db_readonly_send(ctdb, destnode, dbid);
+   return ctdb_ctrl_set_db_readonly_recv(ctdb, state);
+}
diff --git a/include/ctdb_client.h b/include/ctdb_client.h
index 720f073..ad31d24 100644
--- a/include/ctdb_client.h
+++ b/include/ctdb_client.h
@@ -211,7 +211,9 @@ struct ctdb_dbid_map {
uint32_t num;
struct ctdb_dbid {
uint32_t dbid;
-   bool persistent;
+#define CTDB_DB_FLAGS_PERSISTENT   0x01
+#define CTDB_DB_FLAGS_READONLY 0x02
+   uint8_t flags;
} dbs[1];
 };
 int ctdb_ctrl_getdbmap(struct ctdb_context *ctdb,
@@ -597,4 +599,10 @@ int ctdb_ctrl_updaterecord_recv(struct ctdb_context *ctdb, 
struct ctdb_client_co
 int
 ctdb_ctrl_updaterecord(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct 
timeval timeout, uint32_t destnode, struct ctdb_db_context *ctdb_db, TDB_DATA 
key, struct ctdb_ltdb_header *header, TDB_DATA data);
 
+
+struct ctdb_client_control_state *
+ctdb_ctrl_set_db_readonly_send(struct ctdb_context *ctdb, uint32_t destnode, 
uint32_t dbid);
+int ctdb_ctrl_set_db_readonly_recv(struct ctdb_context *ctdb, struct 
ctdb_client_control_state *state);
+int ctdb_ctrl_set_db_readonly(struct ctdb_context *ctdb, uint32_t destnode, 
uint32_t dbid);
+
 #endif /* _CTDB_CLIENT_H */
diff --git a/include/ctdb_private.h b/include/ctdb_private.h
index 4cf3709..6a8ed18 100644
--- a/include/ctdb_private.h
+++ b/include/ctdb_private.h
@@ -1461,4 +1461,6 @@ typedef void (*deferred_requeue_fn)(void *call_context, 
struct ctdb_req_header *
 
 int ctdb_add_revoke_deferred_call(struct 

[SCM] CTDB repository - branch master updated - ctdb-1.10-469-gee9bf15

2011-08-31 Thread Ronnie Sahlberg
The branch, master has been updated
   via  ee9bf1565383bcca70950e9c20fe6b4d0181ce8d (commit)
  from  71080adfe0828e15bf2f4b0bee7d52e06fff3449 (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master


- Log -
commit ee9bf1565383bcca70950e9c20fe6b4d0181ce8d
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu Sep 1 12:30:00 2011 +1000

New version 1.11

---

Summary of changes:
 packaging/RPM/ctdb.spec.in |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/packaging/RPM/ctdb.spec.in b/packaging/RPM/ctdb.spec.in
index f618e76..4b2d98b 100644
--- a/packaging/RPM/ctdb.spec.in
+++ b/packaging/RPM/ctdb.spec.in
@@ -146,6 +146,8 @@ development libraries for ctdb
 %{_libdir}/libctdb.a
 
 %changelog
+* Thu Sep 1 2011 : Version 1.11
+ - Major updates.
 * Tue May 25 2010 : Version 1.10
  - New version 1.10
 * Tue May 25 2010 : Version 1.9


-- 
CTDB repository


[SCM] CTDB repository - branch master-readonly-records updated - ctdb-1.10-454-g1a76638

2011-08-31 Thread Ronnie Sahlberg
The branch, master-readonly-records has been updated
   via  1a766382d7d774aa3444e07401575e51d3704dba (commit)
  from  908a07c42e5135a3ba30a625fc4f4e4916de197a (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master-readonly-records


- Log -
commit 1a766382d7d774aa3444e07401575e51d3704dba
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu Sep 1 11:40:51 2011 +1000

ReadOnly: update the documentation about readonly locks

---

Summary of changes:
 doc/readonlyrecords.txt |   22 --
 1 files changed, 20 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/doc/readonlyrecords.txt b/doc/readonlyrecords.txt
index 6641b81..c07d583 100644
--- a/doc/readonlyrecords.txt
+++ b/doc/readonlyrecords.txt
@@ -47,8 +47,8 @@ Client-side implementation must be possible with only minor 
conditionals added t
 Implementation
 ==
 
-Three new flags are allocated in the ctdb/ltdb record header.
-HAVE_DELEGATIONS, HAVE_READONLY_LOCK and REVOKING_READONLY
+Four new flags are allocated in the ctdb/ltdb record header.
+HAVE_DELEGATIONS, HAVE_READONLY_LOCK, REVOKING_READONLY and REVOKE_COMPLETE
 
 HAVE_DELEGATIONS is a flag that can only be set on the node that is currently 
the DMASTER for the record. When set, this
 flag indicates that there are Read-Only locks delegated to other nodes in the 
cluster for this record.
@@ -64,6 +64,24 @@ When the delegations are about to be revoked, the 
REVOKING_READONLY flag is set
 Once all delegations are revoked, both flags are cleared at the same time.
 While REVOKING_READONLY is set, any requests for the record, either normal 
request or request for readonly will be deferred.
 Deferred requests are linked to a list of deferred requests for the hash of 
the record until the time that the revokation is completed.
+This flags is set by the main ctdb daemon when it starts revoking this record.
+
+REVOKE_COMPLETE
+The actual revoke of records is done by a child process, spawned from the ctdb 
amin daemon when it starts the process to revoke the records.
+Once the child process has finished revoking all delegations, it will set the 
flag REVOKE_COMPLETE for this record to signal to the master daemon that the 
record has been successfully revoked.
+At this stage the child process will also trigger an event in the main daemon 
that revoke is complete, and that the main dameon should start re-processing 
all deferred calls.
+
+
+
+Once the revoke process is completed. There will be at least one deferred call 
to access this record, the initical call to for an exclusive fetch_lock() that 
triggered the revoke process to be started.
+In addition to nthis deferred call there may also be additional requests that 
have also become deferred while the revoke was in process. These can be either 
exclusive fetch_locks() or they can be other calls to request a new readonly 
lock on the record.
+Once the revoke is completed, the main daemon will reprocess all exclusive 
fetch_lock() requests immediately and respond to the clients.
+But any requests for readadonly locks will be deferred for an additional 
period of time before they are re-processed.
+This is to allow the client that needs a fetch_lock() to update the record to 
get some time to access and work on the record without having to compete with 
the possibly very many requests to get new readonly delegations created.
+
+
+
+
 
 
 The ctdbdb structure is expanded so that it contains one extra TDB database 
for each normal, non-persistent datbase.


-- 
CTDB repository


[SCM] CTDB repository - annotated tag ctdb-1.11 created - ctdb-1.11

2011-08-31 Thread Ronnie Sahlberg
The annotated tag, ctdb-1.11 has been created
at  3bf7313652c6b3caa33a1dd948115056806fb43d (tag)
   tagging  ee9bf1565383bcca70950e9c20fe6b4d0181ce8d (commit)
  replaces  ctdb-1.10
 tagged by  Ronnie Sahlberg
on  Thu Sep 1 13:37:17 2011 +1000

- Log -
tag for 1.11
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAABAgAGBQJOXv32AAoJEB6eS+vwPaeGfXUH/3G7IUd2aq5hRpMNv4Q9LfxL
42e1E8TUNOTtspMp8FzhGVukIRECNucE9d+CmzhjmMIayYTSyEhk5BWrQkGCeK/s
EnM8UwKYvLMiZh/jjYNaTnpYMhCcSyCFKNHxp6i+3OVh1zx52zN9BV1K4/H+gSZl
U7ZgIR/ZtBT36ePbS+rATaaMmdx5pi/lk/YbfZskuqvjjpURrZP5C56TndvrOxff
1fOyOdVUm/YBkpKeK/KwPE6agpDkEvsO5209GVaonP6RSGGRZSz5VoE6WoIRORYo
5OZdwHogRzRqJ05kYNsfVuGlxe5UKcPQzWhavyezztaam0gpXQAROiIvMn7UfgM=
=H4I+
-END PGP SIGNATURE-

Chandra Seetharaman (1):
  make changes to ctdb event scripts to support NFS-Ganesha.

Christian Ambach (1):
  improve timing issue detections

David Disseldorp (3):
  web: use the new git repository url on the download page
  client: handle transient connection errors
  io: Make queue_io_read() safe for reentry

Gregor Beck (4):
  ctdb catdb: fix escaping of '' and '\'
  add ltdbtool - a standalone ltdb tool
  ltdbtool: add manpage
  ltdbtool: add manpage html + roff

Luk Claes (3):
  doc/ctdb.1.xml: Fix typo
  doc: regenerate ctdb docs
  doc/ctdb.1.xml: update listvars documentation

Martin Schwenke (203):
  Test suite: make statistics test cope with changes to statistics output.
  Test suite: match changed output for ctdb ping to disconnected node.
  Test suite: fix typo in ctdb ping test grep pattern.
  60.nfs only fails or warns after 10 consecutive nfsd/statd failures.
  Make a time comparison in 60.nfs eventscript more readable.
  Eventscripts: make loadconfig() function hookable by the test suite.
  50.samba eventscript should stop/start services when they become 
(un)managed.
  Eventscript functions - catch failures in ctdb_service_start().
  60.nfs eventscript should do nothing if NFS isn't managed by CTDB.
  Eventscripts: work around NFS restart failure under load.
  Eventscripts: print a message when reconfiguring a service.
  Eventscripts: only autostart during a monitor event.
  Eventscripts: use startstop_nfs restart to reconfigure NFS.
  Eventscripts: lower the fail/restart limits for nfsd.
  onnode - Fix long standing bug in onnode healthy/ok/connected/con.
  onnode: Be defensive when listing IPs of nodes with designated status.
  onnode: Exit with error for unknown command-line flags.
  onnode: Future-proof get_nodes_with_status().
  onnode: Remove an unnecessary comment.
  onnode: fix get_nodes_with_status()
  onnode: fix natgwlist nodespec
  IP allocation - add LCP2 algorithm.
  Tests: Initial test code for LCP2 IP allocation algorithm.
  IP allocation simulation - add debug output using -vv.
  IP reallocation simulation - remove --hack option.
  IP allocation simulation - remove unused function 
find_least_loaded_node().
  IP allocation simulation - options.exit is boolean, so don't compare with 
0.
  IP allocation simulation - add LCP2 algorithm.
  IP allocation simulation - add -H/-S options for hard/soft imbalance 
limit.
  IP allocation simulation - add analysis of IP groups.
  IP allocation simulation - add LCP2 imbalance metric to node state output.
  IP allocation simulation - add -A/--aggressive option.
  IP allocation simulation - add mean imbalance statistics.
  IP allocation simulation - fix documentation for diff() function.
  IP allocation simulation - tighten up termination condition for -x.
  IP allocation simulation - add examples.
  IP allocation simulation - make stats label for LCP2 imbalance more 
meaningful.
  IP allocation simulation - make stats label for LCP2 imbalance more 
meaningful.
  IP allocation simulation - Pad IPv4 addresses in LCP2 algorithm.
  Eventscripts - 10.interfaces should not check orphaned interfaces.
  ctdb natgwlist should return non-zero when there is no natgw.
  Test suite: add a -d option to the run_tests script.
  Tests: change output format of run_tests script and add -q option
  Tests: add initial onnode tests
  Tests: onnode tests changed to use a simple define_test() function.
  Tests: run_tests script no longer prints filename in summary descriptions.
  Tests: eventscripts and onnode tests use stubs/ subdirectory instead of 
bin/.
  Test suite: add time logging.
  Test suite: make time logging only happen on a real cluster, not local 
daemons.
  Test suite: CTDB_NFS_SKIP_SHARE_CHECK test now uses _loadconfig().
  Test suite: CTDB_SAMBA_SKIP_SHARE_CHECK test now uses _loadconfig().
  Test suite: make time log use seconds since epoch.
  Test suite: add 

[SCM] CTDB repository - annotated tag 1.0.99 created - 1.0.99

2011-08-31 Thread Ronnie Sahlberg
The annotated tag, 1.0.99 has been created
at  6036c45e173a949c5357b4032b57cf370281d2b3 (tag)
   tagging  14fca8383b6b1da49278a9181a975543b956161b (commit)
  replaces  ctdb-1.0.98
 tagged by  Ronnie Sahlberg
on  Thu Oct 22 18:27:49 2009 +1100

- Log -
tag for 1.0.99
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBK4AmD2aJ36aon/y8RAhRQAJ41T1CE0AKPUho5RQ21V4JpjnYszgCfRDNQ
Fj1ZdD0DpU0GmRBDDTOG7Og=
=AdTL
-END PGP SIGNATURE-

Michael Adam (1):
  In ctdb_ltdb_store(), add a missing transaction_cancel when local store 
failed.

Ronnie Sahlberg (10):
  treat interfaces with the name ethX* as bond devices
  mprove the log message when we skip the ip allocation check from the 
recovery daemon.
  dont restart ctdb when installing the rpm
  When clients have blocked, perhaps because the node is banned or stopped 
and the client is blocked trying to tdb_fetch() a record, make sure we dont 
queue up too many REQ_MESSAGES.
  lower the debug levels for the create FD messages so we dont fill up 
the logs.
  During tests it is common to add/delete test eventscripts at runtime.
  From Wolfgang M.
  From Volker L
  if a lock wait child died/finished, we could have released the lockwait 
handle and set it to NULL before we call the destructors for releaseing the 
waiters.
  new version 1.0.99

---


-- 
CTDB repository