samba.git
15 years agoconfigure: remove the --with-libdir parameter.
Michael Adam [Fri, 15 Aug 2008 12:35:46 +0000 (14:35 +0200)]
configure: remove the --with-libdir parameter.

This is redundant: use the autoconf-provided --libdir instead.
This will also make the new distinction between libdir and modulesdir
more visible.

Michael
(cherry picked from commit c1d53b7c767275b39dc8ecfcd5b6129ee2cabb6d)

15 years agopopt: add support for setting MODULESDIR via popt_common_dynconfig.
Michael Adam [Thu, 14 Aug 2008 22:45:57 +0000 (00:45 +0200)]
popt: add support for setting MODULESDIR via popt_common_dynconfig.

Michael
(cherry picked from commit 81030e49ce344260d279a3112b13a21ce3520748)

15 years agosvcctl: use MODULESDIR instead of LIBDIR for the svcctl script directory.
Michael Adam [Thu, 14 Aug 2008 22:50:56 +0000 (00:50 +0200)]
svcctl: use MODULESDIR instead of LIBDIR for the svcctl script directory.

Michael
(cherry picked from commit bb19634138cfd1f527c44e16a44aa21ebee50c1c)

15 years agolibgpo: use MODULESDIR instead of LIBDIR for the group policy extensions.
Michael Adam [Thu, 14 Aug 2008 22:49:19 +0000 (00:49 +0200)]
libgpo: use MODULESDIR instead of LIBDIR for the group policy extensions.

Michael
(cherry picked from commit 3346dd40832e8d61edfe4c56dce6fe85031f20f1)

15 years agoUse module_path() instead of lib_path() for loading shared modules.
Michael Adam [Thu, 14 Aug 2008 22:47:30 +0000 (00:47 +0200)]
Use module_path() instead of lib_path() for loading shared modules.

Michael
(cherry picked from commit 22fb3ef1bb4abb33b49d275f9a5d85a1924c22ea)

15 years agoAdd modules_path() to construct paths to files in MODULESDIR.
Michael Adam [Thu, 14 Aug 2008 22:44:14 +0000 (00:44 +0200)]
Add modules_path() to construct paths to files in MODULESDIR.

Michael
(cherry picked from commit 5ef9da6f4f04b07804b389902862fae0fbbfed13)

15 years agobuildoptions: output MODULESDIR.
Michael Adam [Thu, 14 Aug 2008 22:46:46 +0000 (00:46 +0200)]
buildoptions: output MODULESDIR.

Michael
(cherry picked from commit bcb868e4340a856c4009450479628088a8a1628c)

15 years agodynconfig: add support for MODULESDIR.
Michael Adam [Thu, 14 Aug 2008 22:43:31 +0000 (00:43 +0200)]
dynconfig: add support for MODULESDIR.

Michael
(cherry picked from commit 34309f097f5c7321930bf6c2ea2447de1008130c)

15 years agoconfigure: Add --with-modulesdir to accompany --with-libdir.
Michael Adam [Thu, 14 Aug 2008 22:36:49 +0000 (00:36 +0200)]
configure: Add --with-modulesdir to accompany --with-libdir.

This starts the seplitting of libdir in to libdir and modulesdir.
Our shared libs should go into libdir, the internal shared modules,
codepages, and other stuff that was originally in libdir, should
go into modulesdir.

The idea behind this is, that in a typical installation,
the shared (and static) libraries (as libtalloc, libsmbclient,
libwbclient and others) should be put into /usr/lib, while
the e.g. the vfs modules should reside in /usr/lib/samba.

This is meant to ease the work of packagers and reduce
the needs for manual interaction and workarounds.

Michael
(cherry picked from commit b17d1ff646e22c3e979224d119b283fc3af780a8)

15 years agodynconfig: remove commented-out old stuff from dynconfig.c and dynconfig.h
Michael Adam [Thu, 14 Aug 2008 22:58:47 +0000 (00:58 +0200)]
dynconfig: remove commented-out old stuff from dynconfig.c and dynconfig.h

Michael
(cherry picked from commit 85a781fa0248fcd0cefcc4de25b3dea3e37d5844)

15 years agodynconfig: remove unused prototypes.
Michael Adam [Thu, 14 Aug 2008 21:44:06 +0000 (23:44 +0200)]
dynconfig: remove unused prototypes.

set_dyn_STATEDIR, is_default_dyn_STATEDIR,
set_dyn_CACHEDIR, is_default_dyn_CACHEDIR
are neither used nor implemented.

Michael
(cherry picked from commit f30b70b2c3a49bc962848039953a565a040b563d)

15 years agoproto.h: remove prototypes from dynconfig.c
Michael Adam [Thu, 14 Aug 2008 21:14:42 +0000 (23:14 +0200)]
proto.h: remove prototypes from dynconfig.c

These are also in dynconfig.h and were originally added
by "make proto" by accident.

Michael
(cherry picked from commit 4fb69fe1eeebc466944f3daacfacec60ad043b0c)

15 years agoMakefile: print codepagedir in "make showlayout".
Michael Adam [Thu, 14 Aug 2008 21:18:28 +0000 (23:18 +0200)]
Makefile: print codepagedir in "make showlayout".

Michael
(cherry picked from commit a823733b91958adf938214113e6875315c6ae5b2)

15 years agofix build warning.
Günther Deschner [Wed, 20 Aug 2008 16:40:58 +0000 (18:40 +0200)]
fix build warning.

Guenther
(cherry picked from commit a75055be5ff7ebe3476cfac86c6597a56a843c23)

15 years agolibads: remove unused vars.
Günther Deschner [Wed, 20 Aug 2008 19:17:35 +0000 (21:17 +0200)]
libads: remove unused vars.

Guenther
(cherry picked from commit ea9fc3bea31b11e715d9524defc18b75e5943842)

15 years agofix another build warning.
Günther Deschner [Wed, 20 Aug 2008 18:24:45 +0000 (20:24 +0200)]
fix another build warning.

Guenther
(cherry picked from commit 43693ce6c678b961fa516bbf502af92f87cd5346)

15 years agonss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT
Gerald (Jerry) Carter [Wed, 20 Aug 2008 18:00:40 +0000 (13:00 -0500)]
nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT

According to the GNU libc nss guide, we should always set
errno to ENOENT when returning NSS_UNAVAIL.

http://www.gnu.org/software/libtool/manual/libc/NSS-Modules-Interface.html#NSS-Modules-Interface

At least the MQ Series message queing service that runs
on WebSphere will fail if you return any other errno in this case.
(cherry picked from commit ee26664602445fa7798e2061f6bcbef0756d6528)

15 years agosmbd: fix the handling of create_options to pass RAW-OPEN
Stefan Metzmacher [Tue, 19 Aug 2008 14:34:50 +0000 (16:34 +0200)]
smbd: fix the handling of create_options to pass RAW-OPEN

Some of the bits generate INVALID_PARAMETER and some bits
are ignored when they come from a client, that's why we need
to use bits from the ignored range for our internal usage.

metze
(cherry picked from commit 7b4c8a4e39f310eb450918fa841b0ea1b4af19f7)

15 years agoUpdated Doxyfile conf to doxygen version 1.5.3
Steven Danneman [Tue, 19 Aug 2008 18:05:07 +0000 (11:05 -0700)]
Updated Doxyfile conf to doxygen version 1.5.3

* Removed deprecated configuration parameters
* Silenced all warnings due to lack of doxygen comments
* Reordered config parameters to match doxygen's canonical ordering

15 years agocifs.upcall: handle MSKRB5 OID properly
Jeff Layton [Wed, 20 Aug 2008 01:29:41 +0000 (21:29 -0400)]
cifs.upcall: handle MSKRB5 OID properly

When the kernel sends the upcall a sec=mskrb5 parameter, that means
the the MSKRB5 OID is preferred by the server. This patch fixes the
upcall to use that OID in place of the "normal" krb5 OID when it
gets a sec=mskrb5 parameter.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve French <smfrench@gmail.com>
15 years agoFix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 address
Jeremy Allison [Wed, 20 Aug 2008 00:32:07 +0000 (17:32 -0700)]
Fix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 address
reported by Ted Percival <ted@midg3t.net>.
Jeremy.

15 years agoVERSION: Fix version string.
Karolin Seeger [Tue, 19 Aug 2008 12:03:41 +0000 (14:03 +0200)]
VERSION: Fix version string.

Karolin

15 years agobuild: fix linking cifs.upcall when nscd_flush_cache() is found.
Michael Adam [Tue, 19 Aug 2008 11:29:24 +0000 (13:29 +0200)]
build: fix linking cifs.upcall when nscd_flush_cache() is found.

Michael

15 years agoMake the change to smbcontrol for "all" to mean broadcast,
Jeremy Allison [Mon, 18 Aug 2008 23:17:59 +0000 (16:17 -0700)]
Make the change to smbcontrol for "all" to mean broadcast,
and "smbd" to mean the main smb daemon. Update docs to match.
Jeremy.

15 years agocifs.upcall: enable building by default on linux
Jeff Layton [Mon, 18 Aug 2008 17:49:59 +0000 (13:49 -0400)]
cifs.upcall: enable building by default on linux

When building on linux, default to building cifs.upcall. Throw a
warning if ADS support is disabled or keyutils isn't installed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
15 years agocifs.upcall: move default install location to EPREFIX/sbin
Jeff Layton [Mon, 18 Aug 2008 17:49:59 +0000 (13:49 -0400)]
cifs.upcall: move default install location to EPREFIX/sbin

cifs.upcall links to libraries that live under /usr, so installing it
in /sbin doesn't seem appropriate. Move it to EPREFIX/sbin instead
(i.e. /usr/sbin).

Signed-off-by: Jeff Layton <jlayton@redhat.com>
15 years agoFix length error in wrapping spnego blob
Igor Mammedov [Mon, 18 Aug 2008 16:56:23 +0000 (09:56 -0700)]
Fix length error in wrapping spnego blob

15 years agoFix bug 5696. The problem was when smbd
Jeremy Allison [Sun, 17 Aug 2008 02:25:53 +0000 (19:25 -0700)]
Fix bug 5696. The problem was when smbd
was asking for a winbindd name to SID lookup of
"Unix Group\name" where "name" was also a valid username,
the winbindd passdb lookup of that name was losing the
domain string info before calling lookup name (ie. lookup_name()
was being called with just the string "name", not the
full string "Unix Group\name").

The passdb backend of winbindd has to cope with
not only names from it's own global SAM domain,
but it does lookups for BUILTIN and "Unix User"
and "Unix Group" also, so making it guess by
losing the domain string is "A Bad Idea" (tm) :-).

Note that as winbind globally calls winbind_off()
at startup, it's safe for winbind to call sys_getgrnam()
to do the "Unix Group" lookup from inside lookup_name().

Jeremy.

15 years agoAttempt to fix Coverity ID 596
Volker Lendecke [Sat, 16 Aug 2008 09:12:35 +0000 (11:12 +0200)]
Attempt to fix Coverity ID 596

Jeremy, please check & push if it's ok.

15 years agoAttempt to fix Coverity ID 595
Volker Lendecke [Sat, 16 Aug 2008 09:17:09 +0000 (11:17 +0200)]
Attempt to fix Coverity ID 595

is_ipaddress already dereferences "name", so the NULL check is pointless after
calling it.

15 years agomount.cifs: don't prompt for password on krb5 mounts
Jeff Layton [Sat, 16 Aug 2008 10:09:29 +0000 (06:09 -0400)]
mount.cifs: don't prompt for password on krb5 mounts

krb5 mounts require that the user already have a valid krb5 ticket.
Since we can't currently use the password entered, don't prompt for it.

Also, switch to using strncmp instead of strcmp here.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
15 years agoI think the problem with these functions is that lookup_usergroups
Herb Lewis [Fri, 15 Aug 2008 22:30:38 +0000 (15:30 -0700)]
I think the problem with these functions is that lookup_usergroups
should never include the user SID.
The comment for the function in winbindd/winbindd_ads.c says
/* Lookup groups a user is a member of. */
The following patch makes the wbinfo calls return the correct data
before and after a login.
binfo --user-domgroups and --user-sids

15 years agobuild: fix a typo in the installlibtalloc rule.
Michael Adam [Fri, 15 Aug 2008 21:17:48 +0000 (23:17 +0200)]
build: fix a typo in the installlibtalloc rule.

The symlink liballoc.so -> libtalloc.so.1 would have been
created unconditionally, independent of the existence of
libtalloc.so.1.

Michael
(cherry picked from commit 04974818bda75c4315ad09b623e5df55c87dbc87)

15 years agoFix show-stopper for 3.2. Smbd depends on group SID
Jeremy Allison [Fri, 15 Aug 2008 04:54:14 +0000 (21:54 -0700)]
Fix show-stopper for 3.2. Smbd depends on group SID
position zero being the primary group sid. Authenicating
via winbindd call returned a non-sorted sid list. This
fixes is for both a winbindd call and a pac list from
an info3 struct. Without this we mess up the
primary group associated with created files. Found by
Herb.
Jeremy.

15 years agoMake it clear that this is a temporary context byusing a talloc stackframe instead.
Jeremy Allison [Thu, 14 Aug 2008 21:35:01 +0000 (14:35 -0700)]
Make it clear that this is a temporary context byusing a talloc stackframe instead.
Jeremy

15 years agoFix bug #5692 - Core dump in full_audit.so.
Jeremy Allison [Thu, 14 Aug 2008 17:40:14 +0000 (10:40 -0700)]
Fix bug #5692 - Core dump in full_audit.so.
There were some function mismatches in the various GET_NT_ACL modules (some places the fsp parameter has not been removed).
Jeremy.

15 years agoRevert "Add a gpfs_prefetch module"
Michael Adam [Thu, 14 Aug 2008 15:50:47 +0000 (17:50 +0200)]
Revert "Add a gpfs_prefetch module"

This reverts commit fc9b30bed2d774dca6660b497cb50f982b23b885.

Sorry, this got pushed by accident:

"This can not go upstream yet because it uses the non-GPL libgpfs."

Michael

15 years agosmbspool: Fix printing on port 139.
Karolin Seeger [Wed, 13 Aug 2008 19:27:55 +0000 (21:27 +0200)]
smbspool: Fix printing on port 139.

This one was introduced with 8eff35bc.
Thanks to Noèl Köthe for tracking that down!

Karolin
(cherry picked from commit 250f5a40d6e80305220d7cdc6a8f8459d8d0de74)

15 years agonetapi: add some remaining documentation fixes.
Günther Deschner [Wed, 13 Aug 2008 11:59:08 +0000 (13:59 +0200)]
netapi: add some remaining documentation fixes.

Guenther

15 years agonetapi: add doxygen documentation for NetUserModalsGet and NetUserModalsSet.
Günther Deschner [Tue, 12 Aug 2008 17:47:37 +0000 (19:47 +0200)]
netapi: add doxygen documentation for NetUserModalsGet and NetUserModalsSet.

Guenther

15 years agonetapi: add doxygen documentation for NetLocalGroup{Add,Del,Set,Get}Members.
Günther Deschner [Tue, 12 Aug 2008 17:39:38 +0000 (19:39 +0200)]
netapi: add doxygen documentation for NetLocalGroup{Add,Del,Set,Get}Members.

Guenther

15 years agonetapi: make libnetapi_open_ipc_connection static.
Günther Deschner [Tue, 12 Aug 2008 15:59:23 +0000 (17:59 +0200)]
netapi: make libnetapi_open_ipc_connection static.

Guenther

15 years agonetapi: make non-implemented local calls default to remote "localhost" calls.
Günther Deschner [Tue, 12 Aug 2008 13:25:06 +0000 (15:25 +0200)]
netapi: make non-implemented local calls default to remote "localhost" calls.

Guenther

15 years agonetapi: add NetLocalGroupGetMembers example code.
Günther Deschner [Tue, 12 Aug 2008 10:49:19 +0000 (12:49 +0200)]
netapi: add NetLocalGroupGetMembers example code.

Guenther

15 years agonetapi: let libnetapi_samr_lookup_and_open_alias return NTSTATUS.
Günther Deschner [Mon, 11 Aug 2008 18:39:14 +0000 (20:39 +0200)]
netapi: let libnetapi_samr_lookup_and_open_alias return NTSTATUS.

Guenther

15 years agoFix coverity CID: 594. Resource leak on error path.
Jeremy Allison [Wed, 13 Aug 2008 23:52:53 +0000 (16:52 -0700)]
Fix coverity CID: 594. Resource leak on error path.
Jeremy.

15 years agoFix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process is orphane...
Jeremy Allison [Wed, 13 Aug 2008 23:45:34 +0000 (16:45 -0700)]
Fix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process is orphaned if socket address parameter is invalid.
If the "socket address" parameter is a null string that is an invalid value for Samba 3.2 but valid for Samba 3.0.
Jeremy.

15 years agoFix for bug #5617, reported and patched by Bartosz Antosik antosik@gmail.com.
Jeremy Allison [Wed, 13 Aug 2008 22:46:35 +0000 (15:46 -0700)]
Fix for bug #5617, reported and patched by Bartosz Antosik antosik@gmail.com.
xp/2003 explorer freezes browsing shares on samba ipv6 hosts. Caused by missing
reply packet to SMB printclose packet.
Jeremy

15 years agoPrevent NT_STATUS 0xF1000000 errors from appearing when
Jim McDonough [Wed, 13 Aug 2008 22:03:51 +0000 (18:03 -0400)]
Prevent NT_STATUS 0xF1000000 errors from appearing when
dos errors are used and there is no error.  It should
be mapped directly to NT_STATUS_OK.  smbclient to older
servers didn't work.

15 years agoRevert "Add winbind:online check timeout parameter"
Volker Lendecke [Wed, 13 Aug 2008 17:46:16 +0000 (19:46 +0200)]
Revert "Add winbind:online check timeout parameter"

This reverts commit 9920473cc165e75ee9aa5cbb9e568eb5fb67e9e6.

15 years agoRevert "If it is a forced DOS error, nt_errstr should say so"
Volker Lendecke [Wed, 13 Aug 2008 16:17:53 +0000 (18:17 +0200)]
Revert "If it is a forced DOS error, nt_errstr should say so"

This reverts commit 68b79e073d940bcdef6ff9eb79a39657ff6e909e.

Always, always build and run make test before checkin...

15 years agoIf it is a forced DOS error, nt_errstr should say so
Volker Lendecke [Wed, 13 Aug 2008 15:40:30 +0000 (17:40 +0200)]
If it is a forced DOS error, nt_errstr should say so

15 years agoWHATSNEW: Fix version string.
Karolin Seeger [Wed, 13 Aug 2008 14:04:32 +0000 (16:04 +0200)]
WHATSNEW: Fix version string.

Karolin

15 years agonetapi: add c++ guard.
Günther Deschner [Tue, 12 Aug 2008 17:38:22 +0000 (19:38 +0200)]
netapi: add c++ guard.

Guenther

15 years agopackaging(RHEL-CTDB): check for success of x86_64 build before building i386
Michael Adam [Tue, 12 Aug 2008 21:46:50 +0000 (23:46 +0200)]
packaging(RHEL-CTDB): check for success of x86_64 build before building i386

Michael

15 years agopackaging(RHEL-CTDB): fix installation of libsmbsharemodes for the 3.3.0 build.
Michael Adam [Tue, 12 Aug 2008 21:17:18 +0000 (23:17 +0200)]
packaging(RHEL-CTDB): fix installation of libsmbsharemodes for the 3.3.0 build.

Michael

15 years agopackaging(RHEL-CTDB): fix installation of libsmclient for 3.3.0 build.
Michael Adam [Tue, 12 Aug 2008 21:14:42 +0000 (23:14 +0200)]
packaging(RHEL-CTDB): fix installation of libsmclient for 3.3.0 build.

Michael

15 years agopackaging(RHEL-CTDB): install the right libraries for 3.3.0.
Michael Adam [Tue, 12 Aug 2008 19:48:00 +0000 (21:48 +0200)]
packaging(RHEL-CTDB): install the right libraries for 3.3.0.

The library creation and installation has been fixed in that
now the libfoo.so.VERSION is created and libfoo.so is correclty
installed as a link.

Since we do not have a separation of lib dir and modules dir,
we do still install to /usr/lib/samba/, though. Therefore we
still need the workaround in the spec file to install the
libs to /usr/lib/ manually.

Michael

15 years agopackaging(RHEL-CTDB): don't call make proto for the 3.3.0 build.
Michael Adam [Tue, 12 Aug 2008 19:46:19 +0000 (21:46 +0200)]
packaging(RHEL-CTDB): don't call make proto for the 3.3.0 build.

Michael

15 years agopackaging(RHEL-CTDB): move to version 3.3.0 for the rpm build.
Michael Adam [Tue, 12 Aug 2008 19:28:10 +0000 (21:28 +0200)]
packaging(RHEL-CTDB): move to version 3.3.0 for the rpm build.

Michael

15 years agopackaging(RHEL-CTDB): Bump release number to ctdb.47 for the next RPM.
Michael Adam [Mon, 11 Aug 2008 20:56:55 +0000 (22:56 +0200)]
packaging(RHEL-CTDB): Bump release number to ctdb.47 for the next RPM.

Michael

15 years agosmbd: prevent smbd from panicing with "clustering = no" but --with-cluster-support
Michael Adam [Mon, 11 Aug 2008 14:30:36 +0000 (16:30 +0200)]
smbd: prevent smbd from panicing with "clustering = no" but --with-cluster-support

Michael

15 years agoup release to 46
Andrew Tridgell [Sun, 10 Aug 2008 00:46:09 +0000 (10:46 +1000)]
up release to 46

15 years agoup to release 45 now
Andrew Tridgell [Sat, 9 Aug 2008 03:27:36 +0000 (13:27 +1000)]
up to release 45 now

15 years agodisable the DNS update code, as it breaks clustering
Andrew Tridgell [Sat, 9 Aug 2008 03:26:49 +0000 (13:26 +1000)]
disable the DNS update code, as it breaks clustering

15 years agoup to release 44
Andrew Tridgell [Fri, 8 Aug 2008 12:47:23 +0000 (22:47 +1000)]
up to release 44

15 years agoadded a explanatory comment on tcon check
Andrew Tridgell [Fri, 8 Aug 2008 12:47:04 +0000 (22:47 +1000)]
added a explanatory comment on tcon check

15 years agosmbd/conn: fix prototype change of conn_close_all() in proto.h.
Michael Adam [Tue, 12 Aug 2008 10:16:19 +0000 (12:16 +0200)]
smbd/conn: fix prototype change of conn_close_all() in proto.h.

(Cleaning "ensure we exit with non-zero status on EOF on socket"
 after rebasing to v3-3-test which has no "make proto" anymore.)

Michael

15 years agoensure we exit with non-zero status on EOF on socket, so the parent
Andrew Tridgell [Fri, 8 Aug 2008 12:34:59 +0000 (22:34 +1000)]
ensure we exit with non-zero status on EOF on socket, so the parent
can trigger a brlock db cleanup

15 years agofixed child exit handling and IP release handling
Andrew Tridgell [Fri, 8 Aug 2008 11:11:56 +0000 (21:11 +1000)]
fixed child exit handling and IP release handling

15 years agolog unclean shutdowns
Andrew Tridgell [Fri, 8 Aug 2008 11:00:42 +0000 (21:00 +1000)]
log unclean shutdowns

15 years agoregister the ctdbd reconfigure message
Andrew Tridgell [Fri, 8 Aug 2008 10:31:03 +0000 (20:31 +1000)]
register the ctdbd reconfigure message

15 years agoupdate configure.rpm
Andrew Tridgell [Fri, 8 Aug 2008 09:57:57 +0000 (19:57 +1000)]
update configure.rpm

15 years agoincrease version to 43
Andrew Tridgell [Fri, 8 Aug 2008 06:44:52 +0000 (16:44 +1000)]
increase version to 43

15 years agoallow nested ctdb transactions in the same manner that they are
Andrew Tridgell [Fri, 8 Aug 2008 06:44:24 +0000 (16:44 +1000)]
allow nested ctdb transactions in the same manner that they are
allowed for tdb. This is needed for the registry db backend.

15 years agoupdate to ctdb.42 release
Andrew Tridgell [Fri, 8 Aug 2008 03:45:12 +0000 (13:45 +1000)]
update to ctdb.42 release

Michael, if you do a new release, make it 43 or later please

15 years agoupdate to transactions4 release
Andrew Tridgell [Fri, 8 Aug 2008 03:14:09 +0000 (13:14 +1000)]
update to transactions4 release

15 years agodrop retries to 5
Andrew Tridgell [Fri, 8 Aug 2008 03:13:42 +0000 (13:13 +1000)]
drop retries to 5

15 years agouse CTDB_CONTROL_TRANS2_COMMIT_RETRY to prevent the counter getting
Andrew Tridgell [Fri, 8 Aug 2008 03:12:16 +0000 (13:12 +1000)]
use CTDB_CONTROL_TRANS2_COMMIT_RETRY to prevent the counter getting
out of sync

15 years agoup release to transactions3
Andrew Tridgell [Fri, 8 Aug 2008 01:47:23 +0000 (11:47 +1000)]
up release to transactions3

15 years agofixed lots of places that paniced on a failed transaction_commit,
Andrew Tridgell [Fri, 8 Aug 2008 01:42:06 +0000 (11:42 +1000)]
fixed lots of places that paniced on a failed transaction_commit,
thinking it was a failure of a transaction cancel

15 years agodon't leave a dangling transaction on retry error
Andrew Tridgell [Fri, 8 Aug 2008 01:41:21 +0000 (11:41 +1000)]
don't leave a dangling transaction on retry error

15 years agocope with the control failing completely without returning a status
Andrew Tridgell [Fri, 8 Aug 2008 00:55:11 +0000 (10:55 +1000)]
cope with the control failing completely without returning a status

15 years agoup release number
Andrew Tridgell [Fri, 8 Aug 2008 00:01:13 +0000 (10:01 +1000)]
up release number

15 years agohandle two special cases
Andrew Tridgell [Thu, 7 Aug 2008 23:58:15 +0000 (09:58 +1000)]
handle two special cases

1) when all nodes write the same value to the record, or when writing
   a value that is already there, we can skip the write and save
   ourselves a network transactions

2) when all remote nodes fail an update, and we then fail a replay, we
   don't need to trigger a recovery. This solves a corner case where
   we could get into a recovery loop

15 years agomark this release as a transactions test release
Andrew Tridgell [Thu, 7 Aug 2008 20:02:59 +0000 (22:02 +0200)]
mark this release as a transactions test release

15 years agoput a limit on the number of retries. I found a case where a recovery
Andrew Tridgell [Thu, 7 Aug 2008 13:26:22 +0000 (23:26 +1000)]
put a limit on the number of retries. I found a case where a recovery
could lead to it blocking forever

15 years agowe need to commit, not cancel, on record destruction
Andrew Tridgell [Thu, 7 Aug 2008 11:33:00 +0000 (21:33 +1000)]
we need to commit, not cancel, on record destruction

15 years agoremoved more unused code
Andrew Tridgell [Thu, 7 Aug 2008 09:21:49 +0000 (19:21 +1000)]
removed more unused code

15 years agoall persistent databases now do all stores via automatic transactions
Andrew Tridgell [Thu, 7 Aug 2008 09:14:16 +0000 (19:14 +1000)]
all persistent databases now do all stores via automatic transactions

15 years agouse transactions in idmap_tdb2
Andrew Tridgell [Thu, 7 Aug 2008 08:35:19 +0000 (18:35 +1000)]
use transactions in idmap_tdb2

15 years agofixed fetch of empty records
Andrew Tridgell [Thu, 7 Aug 2008 08:34:54 +0000 (18:34 +1000)]
fixed fetch of empty records

15 years agosamba3 can't handle NOREPLY yet
Andrew Tridgell [Thu, 7 Aug 2008 08:33:37 +0000 (18:33 +1000)]
samba3 can't handle NOREPLY yet

15 years agocleanup debugging and fix handling of empty transaction
Andrew Tridgell [Thu, 7 Aug 2008 06:56:47 +0000 (16:56 +1000)]
cleanup debugging and fix handling of empty transaction

15 years agofirst cut at adding full transactions for ctdb to samba3
Andrew Tridgell [Thu, 7 Aug 2008 06:20:05 +0000 (16:20 +1000)]
first cut at adding full transactions for ctdb to samba3

15 years agogot rid of the redundent cache database
Andrew Tridgell [Thu, 7 Aug 2008 01:59:39 +0000 (11:59 +1000)]
got rid of the redundent cache database

15 years agopackaging(RHEL-CTDB): we are now based on 3.2.1
Michael Adam [Thu, 7 Aug 2008 00:46:13 +0000 (02:46 +0200)]
packaging(RHEL-CTDB): we are now based on 3.2.1

Michael

15 years agoidmap tdb2: fix inconsistent mappings by checking for race and retrying to fetch...
Michael Adam [Thu, 7 Aug 2008 00:03:22 +0000 (02:03 +0200)]
idmap tdb2: fix inconsistent mappings by checking for race and retrying to fetch mapping.

Michael

15 years agodbwrap ctdb: fix a DEBUG message.
Michael Adam [Wed, 6 Aug 2008 22:12:57 +0000 (00:12 +0200)]
dbwrap ctdb: fix a DEBUG message.

Michael

15 years agoidmap tdb2: fix broken logic in tdb2_delete_bystring().
Michael Adam [Wed, 6 Aug 2008 20:43:27 +0000 (22:43 +0200)]
idmap tdb2: fix broken logic in tdb2_delete_bystring().

1. use the return value that idmap_tdb2_open_perm_db() gives us
2. don't delete frep the local db if deleting from the perm db failed.
3. fix wrong interpretation of return value of the local delete

Michael