obnox/samba-ctdb.git
15 years agos3:registry: streamline and cleanup regdb_set_secdesc() somewhat.
Michael Adam [Thu, 26 Feb 2009 00:22:03 +0000 (01:22 +0100)]
s3:registry: streamline and cleanup regdb_set_secdesc() somewhat.

Michael

15 years agos3:registry: refactor deletion of value/secdesc/subkey list tdb records out
Michael Adam [Thu, 26 Feb 2009 00:16:07 +0000 (01:16 +0100)]
s3:registry: refactor deletion of value/secdesc/subkey list tdb records out

of regdb_store_values().

Michael

15 years agos3:registry: streamline reg_deletekey() somewhat.
Michael Adam [Wed, 25 Feb 2009 22:13:07 +0000 (23:13 +0100)]
s3:registry: streamline reg_deletekey() somewhat.

use W_ERROR_... macros and separate assignments from checks

Michael

15 years agos3:registry: use create_reg_subkey() in reg_createkey().
Michael Adam [Wed, 25 Feb 2009 21:06:47 +0000 (22:06 +0100)]
s3:registry: use create_reg_subkey() in reg_createkey().

Instead of calling store_reg_keys()

On my box, importing 2000 shares into an empty smbconf key
now takes some 32 seconds.

Michael

15 years agos3:registry: implement create_subkey for the smbconf backend
Michael Adam [Wed, 25 Feb 2009 21:04:58 +0000 (22:04 +0100)]
s3:registry: implement create_subkey for the smbconf backend

by delegating to the db backend

Michael

15 years agos3:registry: implement create_subkey for the db backend.
Michael Adam [Wed, 25 Feb 2009 21:04:07 +0000 (22:04 +0100)]
s3:registry: implement create_subkey for the db backend.

Michael

15 years agos3:registry: add a create_subkey method to the backend ops.
Michael Adam [Wed, 25 Feb 2009 20:59:54 +0000 (21:59 +0100)]
s3:registry: add a create_subkey method to the backend ops.

This is to provide a more atomic means of adding a subkey of a key.

Michael

15 years agosource/include/nt_status.h: add macro W_ERROR_NOT_OK_GOTO(x, y)
Michael Adam [Wed, 25 Feb 2009 15:55:28 +0000 (16:55 +0100)]
source/include/nt_status.h: add macro W_ERROR_NOT_OK_GOTO(x, y)

a goto destination can be specified as a second parameter.

Michael

15 years agos3: move definition of W_ERROR_NOT_OK_GOTO_DONE down to nt_status.h
Michael Adam [Wed, 25 Feb 2009 15:53:05 +0000 (16:53 +0100)]
s3: move definition of W_ERROR_NOT_OK_GOTO_DONE down to nt_status.h

where all the other W_ERROR_xyz macros are found as well.

Michael

15 years agos3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.
Michael Adam [Wed, 25 Feb 2009 13:49:30 +0000 (14:49 +0100)]
s3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.

Michael

15 years agos3:registry: hash the list of subkeys in the regsubkey_ctr
Michael Adam [Wed, 25 Feb 2009 08:53:16 +0000 (09:53 +0100)]
s3:registry: hash the list of subkeys in the regsubkey_ctr

This removes many loops over all the arrays
(from regsubkey_ctr_key_exists) and thus
reduces "net conf drop" from 1m55 to 48seconds
and "net conf import" from 1m55 to 58 seconds
for 2000 shares on my box.

Michael

15 years agos3:registry: remove definition of regsubkey_ctr from the surface.
Michael Adam [Tue, 24 Feb 2009 23:33:24 +0000 (00:33 +0100)]
s3:registry: remove definition of regsubkey_ctr from the surface.

All access is now through accessor functions in reg_objects.c
This allows for performance tuning under the hood in the next step.

Michael

15 years agos3:profiles: use regsubkey_ctr_init() instead of using talloc directly.
Michael Adam [Tue, 24 Feb 2009 23:32:21 +0000 (00:32 +0100)]
s3:profiles: use regsubkey_ctr_init() instead of using talloc directly.

Michael

15 years agos3:registry: use regsubkey_ctr_init() in reg_eventlog.c
Michael Adam [Tue, 24 Feb 2009 22:28:48 +0000 (23:28 +0100)]
s3:registry: use regsubkey_ctr_init() in reg_eventlog.c

Michael

15 years agos3:services_db: use regsubkey_ctr_init() instead of using talloc directly
Michael Adam [Tue, 24 Feb 2009 22:23:04 +0000 (23:23 +0100)]
s3:services_db: use regsubkey_ctr_init() instead of using talloc directly

Michael

15 years agos3:registry: use regsubkey_ctr_get_seqnum() in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 22:19:35 +0000 (23:19 +0100)]
s3:registry: use regsubkey_ctr_get_seqnum() in reg_backend_db.c

Michael

15 years agos3:registry: use regsubkey_ctr_set_seqnum() in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 22:19:08 +0000 (23:19 +0100)]
s3:registry: use regsubkey_ctr_set_seqnum() in reg_backend_db.c

Michael

15 years agos3:registry: use regsubkey_ctr_init() in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 22:18:20 +0000 (23:18 +0100)]
s3:registry: use regsubkey_ctr_init() in reg_backend_db.c

instead of using talloc directly.

Michael

15 years agos3:registry: use regsubkey_ctr_init() in reg_api.c
Michael Adam [Tue, 24 Feb 2009 22:17:05 +0000 (23:17 +0100)]
s3:registry: use regsubkey_ctr_init() in reg_api.c

instead of using talloc on struct regsubkey_ctr.

Michael

15 years agos3:registry: add regsubkey_ctr_get_seqnum() to hide implementation
Michael Adam [Tue, 24 Feb 2009 22:15:55 +0000 (23:15 +0100)]
s3:registry: add regsubkey_ctr_get_seqnum() to hide implementation

Michael

15 years agos3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.
Michael Adam [Tue, 24 Feb 2009 22:10:35 +0000 (23:10 +0100)]
s3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.

Michael

15 years agos3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr
Michael Adam [Tue, 24 Feb 2009 21:43:47 +0000 (22:43 +0100)]
s3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr

Michael

15 years agos3:registry: fix a comment
Michael Adam [Tue, 24 Feb 2009 21:41:40 +0000 (22:41 +0100)]
s3:registry: fix a comment

Michael

15 years agos3:registry: don't directly access key->subkeys->subkeys[] in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 21:16:40 +0000 (22:16 +0100)]
s3:registry: don't directly access key->subkeys->subkeys[] in reg_backend_db.c

Use the reg_objects accessor regsubkey_ctr_specific_key() instead.

Michael

15 years agos3:registry: don't directly access key->subkeys->subkeys[] in reg_api.c
Michael Adam [Tue, 24 Feb 2009 20:12:26 +0000 (21:12 +0100)]
s3:registry: don't directly access key->subkeys->subkeys[] in reg_api.c

Use the reg_objects accessor regsubkey_ctr_specific_key() instead.

Michael

15 years agos3:registry: don't directly access key->subkeys->num_subkeys in reg_backend_db.
Michael Adam [Tue, 24 Feb 2009 16:42:50 +0000 (17:42 +0100)]
s3:registry: don't directly access key->subkeys->num_subkeys in reg_backend_db.

Use the reg_objects api instead.

Michael

15 years agos3:registry: don't directly access key->subkeys->num_subkeys in reg_api.c
Michael Adam [Tue, 24 Feb 2009 16:30:23 +0000 (17:30 +0100)]
s3:registry: don't directly access key->subkeys->num_subkeys in reg_api.c

Use the reg_objects api instead.

Michael

15 years agos3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
Michael Adam [Tue, 24 Feb 2009 14:19:18 +0000 (15:19 +0100)]
s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"

This paves the way for hiding the typedef and the implementation from the
surface.

Michael

15 years agoRevert "Fix a O(n^2) algorithm in regdb_fetch_keys()"
Michael Adam [Tue, 24 Feb 2009 16:51:09 +0000 (17:51 +0100)]
Revert "Fix a O(n^2) algorithm in regdb_fetch_keys()"

This reverts commit a13f065bad0f4d21a67e68b743f17f45bf0a4691.

This fix is reverted, because the speedup is going to move
further down into reg_objects.c. The unsorted list of subkey names
is going to be indexed: This O(n^2) search bites us in more places.
This re-establishes the abstraction of reg_objects.c.

Michael

15 years agoerrors: add WERR_NOT_FOUND.
Günther Deschner [Tue, 29 Apr 2008 18:10:17 +0000 (20:10 +0200)]
errors: add WERR_NOT_FOUND.

Guenther
(This used to be commit b9ac03bdfa5763c713674acd966ab5d4371992a5)
(cherry picked from commit d0411c19dc847919b2a7941d91d2605c885e2b62)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agos3:net: wrap net conf import into one big transaction
Michael Adam [Tue, 24 Feb 2009 10:26:26 +0000 (11:26 +0100)]
s3:net: wrap net conf import into one big transaction

This speeds up "net conf import" of a file with 2000 shares
from 11 minutes to 1m50s on my box.

Michael

15 years agos3:libsmbconf: add transactions to the libsmbconf api
Michael Adam [Tue, 24 Feb 2009 10:25:44 +0000 (11:25 +0100)]
s3:libsmbconf: add transactions to the libsmbconf api

This is useful for wrapping higher level aggregate operations
in transactions. The text backend implementations just return
WERR_OK, the registry backend implementatoins use the
regdb_transaction_start|commit|cancel routines just added.

Michael

15 years agos3:registry: wrap deletekey_recursive in one big transaction.
Michael Adam [Tue, 24 Feb 2009 14:40:05 +0000 (15:40 +0100)]
s3:registry: wrap deletekey_recursive in one big transaction.

This speeds up "net conf drop" with 2000 shares on my box from
4m40s to 1m50s, leaving virtually only cpu load.

Michael

15 years agos3:registry: provide transaction_start|commit|cancel fns for the registry tdb
Michael Adam [Tue, 24 Feb 2009 10:23:52 +0000 (11:23 +0100)]
s3:registry: provide transaction_start|commit|cancel fns for the registry tdb

Michael

15 years agoWrap creating the sorted subkey cache in a transaction
Volker Lendecke [Sun, 22 Feb 2009 09:11:29 +0000 (10:11 +0100)]
Wrap creating the sorted subkey cache in a transaction

15 years agoAdd a comment describing the sorted subkeys
Volker Lendecke [Sun, 22 Feb 2009 00:11:51 +0000 (01:11 +0100)]
Add a comment describing the sorted subkeys

15 years agoAdd sorted subkey cache
Volker Lendecke [Fri, 20 Feb 2009 05:01:16 +0000 (06:01 +0100)]
Add sorted subkey cache

On my box this gets net conf list for 1000 records down to .1 seconds

15 years agoAdd db_tdb_parse
Volker Lendecke [Sat, 21 Feb 2009 23:47:54 +0000 (00:47 +0100)]
Add db_tdb_parse

15 years agoAdd dbwrap->parse_record
Volker Lendecke [Sat, 21 Feb 2009 23:18:05 +0000 (00:18 +0100)]
Add dbwrap->parse_record

15 years agoSpeed up "net conf list"
Volker Lendecke [Sat, 21 Feb 2009 17:00:42 +0000 (18:00 +0100)]
Speed up "net conf list"

For 1000 shares this speeds up net conf list from .6 to .25 seconds on my box

15 years agoSpeed up "net conf list"
Volker Lendecke [Sat, 21 Feb 2009 16:01:58 +0000 (17:01 +0100)]
Speed up "net conf list"

With 1000 shares in the registry, this changed the time of "net conf list" from
1.1 seconds to .6 seconds.

15 years agos3:dbwrap: add get_flags() hook to db_context
Stefan Metzmacher [Wed, 17 Dec 2008 07:35:35 +0000 (08:35 +0100)]
s3:dbwrap: add get_flags() hook to db_context

metze

15 years agos3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backend
Michael Adam [Wed, 21 Jan 2009 16:16:37 +0000 (17:16 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backend

Michael

15 years agolibsmbconf: add method is_writeable() and wrapper smbconf_is_writeable()
Michael Adam [Thu, 23 Oct 2008 09:16:50 +0000 (11:16 +0200)]
libsmbconf: add method is_writeable() and wrapper smbconf_is_writeable()

This allows for per-config-source checking of write support.

Michael

15 years agolibsmbconf: add backend_requires_messaging() method to libsmbconf.
Michael Adam [Mon, 20 Oct 2008 21:52:02 +0000 (23:52 +0200)]
libsmbconf: add backend_requires_messaging() method to libsmbconf.

In a clustered environment, the registry backend needs messaging
to be set up since ctdb requires this.

Michael

15 years agolibsmbconf: add "includes" to the forbidden_valnames[].
Michael Adam [Mon, 23 Jun 2008 09:11:08 +0000 (11:11 +0200)]
libsmbconf: add "includes" to the forbidden_valnames[].

This removes the warning messages 'Unknown parameter encountered: "includes"'.

Michael
(cherry picked from commit b20019ceaaf4a8964792f6ba37f50f91b6847e7f)

15 years agolibsmbconf: fastpaths first in smbconf_reg_valname_valid().
Michael Adam [Mon, 23 Jun 2008 09:09:38 +0000 (11:09 +0200)]
libsmbconf: fastpaths first in smbconf_reg_valname_valid().

Before dropping into lp_parameter_is_valid().

Michael
(cherry picked from commit 59beb7acd777a4c224dce90fbbff7a137d2b89c1)

15 years agoremove an unused variable
Michael Adam [Thu, 19 Feb 2009 21:49:44 +0000 (22:49 +0100)]
remove an unused variable

Michael

15 years agoremove an unused variable
Michael Adam [Thu, 19 Feb 2009 21:36:29 +0000 (22:36 +0100)]
remove an unused variable

Michael

15 years agoFix a O(n^2) algorithm in regdb_fetch_keys()
Volker Lendecke [Thu, 19 Feb 2009 19:03:06 +0000 (20:03 +0100)]
Fix a O(n^2) algorithm in regdb_fetch_keys()
(cherry picked from commit d98c43982c56ef788144a3fd67cdd65a9f95f2be)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoFix a buffer handling bug when adding lots of registry keys
Volker Lendecke [Thu, 19 Feb 2009 13:16:44 +0000 (14:16 +0100)]
Fix a buffer handling bug when adding lots of registry keys

This is *ancient*... From 2002, and nobody noticed until someone added lots of
shares using net conf... :-)
(cherry picked from commit 36ae846d15027df5e3a02ffabb08183dad9f6517)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoMerge commit 'origin/v3-2-test' into v3-2-ctdb
Michael Adam [Wed, 11 Feb 2009 21:42:26 +0000 (22:42 +0100)]
Merge commit 'origin/v3-2-test' into v3-2-ctdb

15 years agos3:packaging: fix parsing of include.h in fill-templates
Michael Adam [Wed, 11 Feb 2009 21:27:48 +0000 (22:27 +0100)]
s3:packaging: fix parsing of include.h in fill-templates

The content has changed slightly in master for the merged build,
and we must be more exact when parsing the lines.

Michael

15 years agos3:packaging: fix path to calling update-pkginfo after pushd in fill-templates
Michael Adam [Wed, 11 Feb 2009 21:25:41 +0000 (22:25 +0100)]
s3:packaging: fix path to calling update-pkginfo after pushd in fill-templates

Michael

15 years agos3:packaging: paths cosmetics in fill-templates
Michael Adam [Wed, 11 Feb 2009 21:24:52 +0000 (22:24 +0100)]
s3:packaging: paths cosmetics in fill-templates

Michael

15 years agoenable IPv6 support for NetBSD, FreeBSD
Björn Jacke [Wed, 11 Feb 2009 15:34:02 +0000 (16:34 +0100)]
enable IPv6 support for NetBSD, FreeBSD

most systems include netinet/in.h via netdb.h but *BSD don't.

15 years agoMerge commit 'origin/v3-2-test' into v3-2-ctdb
Michael Adam [Wed, 11 Feb 2009 12:15:42 +0000 (13:15 +0100)]
Merge commit 'origin/v3-2-test' into v3-2-ctdb

15 years agos3:build: some implementations of "ln" are picky about the order or arguments
Michael Adam [Wed, 11 Feb 2009 10:03:30 +0000 (11:03 +0100)]
s3:build: some implementations of "ln" are picky about the order or arguments

Michael

15 years agoFix resume handle for _samr_EnumDomainGroups
Volker Lendecke [Wed, 11 Feb 2009 03:08:46 +0000 (19:08 -0800)]
Fix resume handle for _samr_EnumDomainGroups

15 years agoMerge commit 'origin/v3-2-test' into v3-2-ctdb
Michael Adam [Wed, 11 Feb 2009 00:08:24 +0000 (01:08 +0100)]
Merge commit 'origin/v3-2-test' into v3-2-ctdb

15 years agopackaging: make update-pkginfo callable from any directory
Michael Adam [Tue, 10 Feb 2009 22:52:40 +0000 (23:52 +0100)]
packaging: make update-pkginfo callable from any directory

Michael
(cherry picked from commit 7ea90835ebf6e2f2c6f325760800d8361d087ede)

15 years agopackaging: use "find" instead of "du" to find files... :-)
Michael Adam [Fri, 12 Sep 2008 13:07:00 +0000 (15:07 +0200)]
packaging: use "find" instead of "du" to find files... :-)

Michael
(This used to be commit 768aa82361a2c4b0aab71433b7593723a2868f0a)
(cherry picked from commit fd7635a1161e25d88a8252a5cf9de70ca2fe4232)

15 years agopackaging: remove commented out stuff from update-pkginfo
Michael Adam [Tue, 10 Feb 2009 22:50:14 +0000 (23:50 +0100)]
packaging: remove commented out stuff from update-pkginfo

Michael
(cherry picked from commit d714e58ec1f74897cd13e7cd9dd9003600052b45)

15 years agopackaging: don't clutter the output of fillup-templates with popd output
Michael Adam [Tue, 10 Feb 2009 22:31:52 +0000 (23:31 +0100)]
packaging: don't clutter the output of fillup-templates  with popd output

Michael
(cherry picked from commit 0c711935d30b500a15ef06fd658d382b2c1e2c84)

15 years agopackaging: fix fill-templates call to update-pkginfo to pushd appropriately first
Michael Adam [Tue, 10 Feb 2009 22:30:48 +0000 (23:30 +0100)]
packaging: fix fill-templates call to update-pkginfo to pushd appropriately first

Michael
(cherry picked from commit c28d4ae537d9fc0b76eae758d32356eaf1113c89)

15 years agopackaging: add script fill-templates
Michael Adam [Tue, 10 Feb 2009 17:54:16 +0000 (18:54 +0100)]
packaging: add script fill-templates

This is a standalone-wrapper for update-pkginfo, which is
usually called from create-tarball. It basically repeats
some functionality of create-tarball.

Michael
(cherry picked from commit ca23469a906bab690162184e8d3949897f7b5a67)

15 years agos3-spoolss: fix memleak in get_remote_printer_publishing_data().
Günther Deschner [Tue, 10 Feb 2009 09:59:34 +0000 (10:59 +0100)]
s3-spoolss: fix memleak in get_remote_printer_publishing_data().

Guenther
(cherry picked from commit 97f1514ce95800f1296b1979f1b34dcc5d56a376)

15 years agoMerge commit 'origin/v3-2-test' into v3-2-ctdb
Michael Adam [Mon, 9 Feb 2009 22:41:16 +0000 (23:41 +0100)]
Merge commit 'origin/v3-2-test' into v3-2-ctdb

15 years agos3 build: Fix "assignment discards qualifiers from pointer target type" warnings
Tim Prouty [Mon, 2 Feb 2009 07:59:53 +0000 (23:59 -0800)]
s3 build: Fix "assignment discards qualifiers from pointer target type" warnings

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agos3:winbind_user: fix "getent passwd" to allocate new uids.
Michael Adam [Mon, 9 Feb 2009 15:08:19 +0000 (16:08 +0100)]
s3:winbind_user: fix "getent passwd" to allocate new uids.

"getent passwd" used to fill the idmap cache with negative
cache entries for unmapped user sids.

Don't pass domain name unconditionally to idmap_sid_to_[ug]id().
idmap_sid_to_[ug]id() only creates new mappings (allocating
idmap backends tdb, tdb2, ldap...) when the domain name passed
in is "".

Note that it is _wrong_ to directly call the idmap_sid_to_[ug]id()
functions here, in the main winbindd. The correct fix would be
to send a sid_to_[ug]id request to winbindd itself, but this needs
more work to prepare the async mechanisms, and we nee a quick
fix for getent passwd now.

Michael

15 years agoFix count in _srvsvc_NetDiskEnum()
Volker Lendecke [Mon, 9 Feb 2009 11:32:16 +0000 (12:32 +0100)]
Fix count in _srvsvc_NetDiskEnum()

Without this, remotely adding a share via MMC fails

15 years agos3:winbind_group: fix "getent group" to allocate new gids.
Michael Adam [Sun, 1 Feb 2009 23:46:57 +0000 (00:46 +0100)]
s3:winbind_group: fix "getent group" to allocate new gids.

"getent group" used to fill the idmap cache with negative
cache entries for unmapped group sids.

Don't pass domain name unconditionally to idmap_sid_to_gid().
idmap_sid_to_gid() only creates new mappings (allocating
idmap backends tdb, tdb2, ldap...) when the domain name passed
in is "".

Note that it is _wrong_ to directly call the idmap_sid_to_gid()
functions here, in the main winbindd. The correct fix would be
to send a sid_to_gid request to winbindd itself, but this needs
more work to prepare the async mechanisms, and we nee a quick
fix for getent passwd now.

Michael
(cherry picked from commit 8c64302915bde8a5400b575389b12e0eaf2cf140)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoMemory leaks and other fixes found by Coverity
todd stecher [Thu, 22 Jan 2009 18:17:37 +0000 (10:17 -0800)]
Memory leaks and other fixes found by Coverity

(This is the winbindd_group.c portion of the patch - obnox)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoMemory leaks and other fixes found by Coverity
todd stecher [Thu, 22 Jan 2009 18:17:37 +0000 (10:17 -0800)]
Memory leaks and other fixes found by Coverity

(This is the winbindd_user.c portion of the patch - obnox)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agos3:configure: autodetect ctdb/cluster support
Stefan Metzmacher [Wed, 28 Jan 2009 16:36:36 +0000 (17:36 +0100)]
s3:configure: autodetect ctdb/cluster support

We need to make sure ctdb has transaction support
and we autodetect ipv6 support.

metze
(cherry picked from commit 11163720e6f30e83f523c5009e1e60b5cf28cda6)
(cherry picked from commit f87f4842cc0ffc62d76ee5350b94f7bda735aa71)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agos3:ctdbd_conn: canonicalize ips before sending them to ctdbd
Stefan Metzmacher [Wed, 28 Jan 2009 17:55:13 +0000 (18:55 +0100)]
s3:ctdbd_conn: canonicalize ips before sending them to ctdbd

This makes samba work with older ctdb versions.

metze
(cherry picked from commit 7540d13956a8a69d25f6fbbc4f9a3417e91db1d2)
(cherry picked from commit a7fcaff295c3a36e2b783398ac212500eef33ecb)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoMerge commit 'origin/v3-2-test' into v3-2-ctdb
Michael Adam [Fri, 6 Feb 2009 16:03:18 +0000 (17:03 +0100)]
Merge commit 'origin/v3-2-test' into v3-2-ctdb

15 years agos3: reinit_after_fork() should reinit the event context before the
Stefan Metzmacher [Tue, 20 Jan 2009 00:26:00 +0000 (16:26 -0800)]
s3: reinit_after_fork() should reinit the event context before the
messaging context

Because messaging_reinit() may add events to the event context, which will
removed by event_context_reinit().

metze
(cherry picked from commit 56af6112d67aa9dd3757297fbe29ce1a3eabf00d)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoMerge commit 'origin/v3-2-test' into v3-2-ctdb
Michael Adam [Fri, 6 Feb 2009 15:51:28 +0000 (16:51 +0100)]
Merge commit 'origin/v3-2-test' into v3-2-ctdb

15 years agomount.cifs: initialize rc to 0 in main
Jeff Layton [Fri, 6 Feb 2009 13:32:40 +0000 (08:32 -0500)]
mount.cifs: initialize rc to 0 in main

The value of rc in main() isn't initialized in the declaration. This
wasn't a problem before, but Shirish's fakemount patch can make it so
that we return the uninitialized variable if the -n flag is used.

Fix this by initializing rc to 0.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
15 years agomount.cifs: add fakemount (-f) and nomtab (-n) flags to mount.cifs
Shirish Pargaonkar [Fri, 6 Feb 2009 13:16:11 +0000 (08:16 -0500)]
mount.cifs: add fakemount (-f) and nomtab (-n) flags to mount.cifs

...so that these options work correctly when passed in by mount(8).

15 years agos3:net conf: remove check for sharename being a usernam in "net conf addshare"
Michael Adam [Fri, 6 Feb 2009 09:42:11 +0000 (10:42 +0100)]
s3:net conf: remove check for sharename being a usernam in "net conf addshare"

This is useless and can be overriden by "net conf setparm" anyways.

Michael

15 years agodocs: fix two typos in the mount.cifs manpage
Michael Adam [Thu, 5 Feb 2009 21:19:58 +0000 (22:19 +0100)]
docs: fix two typos in the mount.cifs manpage

Michael
(cherry picked from commit 145fe37766cf1ecffb16a03b58b44d08f7ed7558)

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoDon't try and delete a default ACL from a file.
Günter Kukkukk [Fri, 6 Feb 2009 02:59:03 +0000 (18:59 -0800)]
Don't try and delete a default ACL from a file.

15 years agoHave nmbd check all available interfaces for WINS before failing
Aravind Srinivasan [Thu, 5 Feb 2009 22:46:59 +0000 (14:46 -0800)]
Have nmbd check all available interfaces for WINS before failing

When nmbd is acting as WINS, it picks the first interface's IP as WINS
server's IP. If the first interface's IP is zero, we will just quit
(even though we might have other interfaces with valid IPs).

This patch makes nmbd look at all interfaces and pick the first interface
with a valid IP as the WINS server's IP.

15 years agoumount.cifs: clean-up entries in /etc/mtab after unmount
Shirish Pargaonkar [Thu, 5 Feb 2009 19:17:48 +0000 (14:17 -0500)]
umount.cifs: clean-up entries in /etc/mtab after unmount

This patch removes the remaining entry in /etc/mtab after a filesystem
is unmounted by canonicalizing the mountpoint supplied on the command
line.

Please refer to bug 4370 in samba bugzilla.

15 years agos3-net: remove unused ENUM_HND.
Günther Deschner [Wed, 4 Feb 2009 22:55:54 +0000 (23:55 +0100)]
s3-net: remove unused ENUM_HND.

Guenther
(cherry picked from commit a713060a6e36706cfd5b997aa4cbfabf4e180c84)

15 years agoFix bug #6085 - In vfs_default.c change utime( ) call.
Miguel Suarez [Tue, 3 Feb 2009 22:35:19 +0000 (14:35 -0800)]
Fix bug #6085 - In vfs_default.c change utime( ) call.

15 years agoProbably fixes a crash during name resolution when log level >= 10
Ted Percival [Tue, 3 Feb 2009 22:10:20 +0000 (14:10 -0800)]
Probably fixes a crash during name resolution when log level >= 10
and libc segfaults if printf is passed NULL for a "%s" arg
(eg. Solaris).

15 years agoMerge commit 'origin/v3-2-test' into v3-2-ctdb
Michael Adam [Tue, 3 Feb 2009 15:53:57 +0000 (16:53 +0100)]
Merge commit 'origin/v3-2-test' into v3-2-ctdb

15 years agos3: Fix 'net rpc join' for users with the SeMachineAccountPrivilege.
Volker Lendecke [Tue, 3 Feb 2009 13:41:49 +0000 (14:41 +0100)]
s3: Fix 'net rpc join' for users with the SeMachineAccountPrivilege.

This used to be commit fda8abac in master.

15 years agopackaging(RHEL-CTDB): makerpms.sh: build winbind-32bit libs in the 64bit build
Michael Adam [Wed, 21 Jan 2009 08:49:12 +0000 (09:49 +0100)]
packaging(RHEL-CTDB): makerpms.sh: build winbind-32bit libs in the 64bit build

Michael

15 years agopackaging(RHEL-CTDB): Build winbind-32bit package in the 64bit build
Michael Adam [Tue, 20 Jan 2009 18:47:28 +0000 (19:47 +0100)]
packaging(RHEL-CTDB): Build winbind-32bit package in the 64bit build

Michael

15 years agoWHATSNEW: Update changes since 3.2.7.
Karolin Seeger [Tue, 3 Feb 2009 13:49:08 +0000 (14:49 +0100)]
WHATSNEW: Update changes since 3.2.7.

Karolin

15 years agopackaging(RHEL-CTDB): extend makespec.sh to extract VENDOR_PATCH from version.h
Michael Adam [Wed, 21 Jan 2009 10:03:34 +0000 (11:03 +0100)]
packaging(RHEL-CTDB): extend makespec.sh to extract VENDOR_PATCH from version.h

Michael

15 years agopackaging(RHEL-CTDB): The former release number has basically moved into VERSION
Michael Adam [Wed, 21 Jan 2009 09:24:31 +0000 (10:24 +0100)]
packaging(RHEL-CTDB): The former release number has basically moved into VERSION

Michael

15 years agoVERSION: add vendor suffix ("ctdb") and vendor patch level
Michael Adam [Wed, 21 Jan 2009 09:21:31 +0000 (10:21 +0100)]
VERSION: add vendor suffix ("ctdb") and vendor patch level

Michael

15 years agoWHATSNEW: Update changes since 3.2.7.
Karolin Seeger [Tue, 3 Feb 2009 08:48:40 +0000 (09:48 +0100)]
WHATSNEW: Update changes since 3.2.7.

Karolin

15 years agoAdjust regex to match variable names including underscores
Lars Müller [Mon, 2 Feb 2009 20:38:38 +0000 (21:38 +0100)]
Adjust regex to match variable names including underscores

This is required to get the CIFSUPCALL_PROGS setting extracted from
config.log.

15 years agoConditional install of the cifs.upcall man page
Lars Müller [Mon, 2 Feb 2009 20:12:52 +0000 (21:12 +0100)]
Conditional install of the cifs.upcall man page

Only install the cifs.upcall man page if CIFSUPCALL_PROGS was set while
configure.