obnox/samba-ctdb.git
13 years agos3: Add wbinfo --dc-info
Volker Lendecke [Mon, 10 Jan 2011 16:25:00 +0000 (17:25 +0100)]
s3: Add wbinfo --dc-info

13 years agos3:vfs aio_fork children do not go away
Christian Ambach [Thu, 13 Jan 2011 15:04:36 +0000 (16:04 +0100)]
s3:vfs aio_fork children do not go away

on RHEL 5.5, recvmsg() does not return when it is reading
from the socket and the process on the other side closes
its connection. This left aio children around that should
have gone already and were just wasting system resources.

This patch makes the child go away by writing invalid
data to it so that the child exits.

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

13 years agos3:vfs fix children cleanup in aio_fork
Christian Ambach [Thu, 13 Jan 2011 14:59:18 +0000 (15:59 +0100)]
s3:vfs fix children cleanup in aio_fork

the cleanup loop in aio_fork always stopped operation
on the first inactive child it found. In case lots of
children need to be reaped, it will take multiple runs
before all children are gone

13 years agov3-4-ctdb: Bump ctdb vendor patch level to 17
Christian Ambach [Mon, 17 Jan 2011 13:06:15 +0000 (14:06 +0100)]
v3-4-ctdb: Bump ctdb vendor patch level to 17

13 years agos3: Use smbsock_any_connect in winbind
Volker Lendecke [Tue, 21 Dec 2010 20:55:01 +0000 (21:55 +0100)]
s3: Use smbsock_any_connect in winbind

13 years agos3: Retry *SMBSERVER in nb_connect
Volker Lendecke [Tue, 21 Dec 2010 17:52:53 +0000 (18:52 +0100)]
s3: Retry *SMBSERVER in nb_connect

13 years agos3: Add smbsock_any_connect
Volker Lendecke [Mon, 13 Dec 2010 16:17:51 +0000 (17:17 +0100)]
s3: Add smbsock_any_connect

13 years agos3: Add an async smbsock_connect
Volker Lendecke [Sun, 12 Dec 2010 17:55:06 +0000 (18:55 +0100)]
s3: Add an async smbsock_connect

This connects to 445 and after 5 milliseconds also to 139. It treats a netbios
session setup failure as equivalent as a TCP connect failure. So if 139 is
faster but fails the nb session setup, the 445 still has the chance to succeed.

13 years agov3-4-test: Pull in tevent_req_poll_ntstatus from master
Volker Lendecke [Wed, 22 Dec 2010 14:21:27 +0000 (15:21 +0100)]
v3-4-test: Pull in tevent_req_poll_ntstatus from master

13 years agos3: Add async cli_session_request
Volker Lendecke [Sun, 12 Dec 2010 17:54:31 +0000 (18:54 +0100)]
s3: Add async cli_session_request

This does not do the redirects, but I think that might be obsolete anyway

13 years agov3-4-test: Pull in read_smb_send from master
Volker Lendecke [Wed, 22 Dec 2010 14:15:47 +0000 (15:15 +0100)]
v3-4-test: Pull in read_smb_send from master

13 years agos3: Add some const to name_mangle()
Volker Lendecke [Sun, 12 Dec 2010 17:53:49 +0000 (18:53 +0100)]
s3: Add some const to name_mangle()

13 years agos3: Fix shadow-copy module for drag&drop from a snapshot
Volker Lendecke [Thu, 16 Dec 2010 11:26:02 +0000 (04:26 -0700)]
s3: Fix shadow-copy module for drag&drop from a snapshot

We have to return NT_STATUS_NOT_SAME_DEVICE to trigger the Windows client to
start a copy itself. Unbeknownst to us via the ACLs snapshots are read-only, so
a rename would trigger a EACCES. Unfortunately the MacOS/X finder does not do
the smart NOT_SAME_DEVICE fallback that Windows does.

13 years agov3-4-ctdb: Bump ctdb vendor patch level to 16
Volker Lendecke [Mon, 13 Dec 2010 12:42:30 +0000 (13:42 +0100)]
v3-4-ctdb: Bump ctdb vendor patch level to 16

13 years agos3: Reply correctly to FSCTL_IS_VOLUME_DIRTY
Volker Lendecke [Fri, 10 Dec 2010 15:48:19 +0000 (08:48 -0700)]
s3: Reply correctly to FSCTL_IS_VOLUME_DIRTY

13 years agos3: Add shadow copy info to smbclient allinfo
Volker Lendecke [Mon, 29 Nov 2010 17:09:49 +0000 (18:09 +0100)]
s3: Add shadow copy info to smbclient allinfo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Nov 30 12:23:50 CET 2010 on sn-devel-104

13 years agos3: Add cli_shadow_copy_data
Volker Lendecke [Mon, 29 Nov 2010 16:39:43 +0000 (17:39 +0100)]
s3: Add cli_shadow_copy_data

13 years agos3:registry correct a debug level
Christian Ambach [Thu, 9 Dec 2010 10:25:17 +0000 (11:25 +0100)]
s3:registry correct a debug level

this is not a level 0 message, move it to 10

13 years agos3: Fix serverid_exists
Volker Lendecke [Fri, 3 Dec 2010 08:34:02 +0000 (01:34 -0700)]
s3: Fix serverid_exists

In the cluster case it can happen that a node just died and we did not yet have
the time to clean up serverid.tdb. If the corresponding serverid.tdb record
that represented a process was migrated away from the dead record, it
represents existence of a process where it is already dead.

13 years agov3-4-ctdb: Fix debuginfo builds
Volker Lendecke [Fri, 3 Dec 2010 09:13:46 +0000 (02:13 -0700)]
v3-4-ctdb: Fix debuginfo builds

13 years agos3:winbind correct a copy&paste error
Christian Ambach [Wed, 24 Nov 2010 10:57:59 +0000 (11:57 +0100)]
s3:winbind correct a copy&paste error

negative results of sid->gid lookups should be stored with
idmap_cache_set_sid2gid instead of idmap_cache_set_sid2uid

This seems to be a copy&paste error when similar logic from the
sid2uid path was copied here in 84b88f4b.

13 years agov3-4-test: Protect against invalid winbindd_cache entries
Volker Lendecke [Tue, 23 Nov 2010 13:49:12 +0000 (14:49 +0100)]
v3-4-test: Protect against invalid winbindd_cache entries

13 years agov3-4-test: Correctly calculate the wbinfo -s result
Volker Lendecke [Tue, 23 Nov 2010 13:28:45 +0000 (14:28 +0100)]
v3-4-test: Correctly calculate the wbinfo -s result

13 years agov3-4-ctdb: Bump ctdb vendor patch level to 15
Volker Lendecke [Tue, 2 Nov 2010 16:18:31 +0000 (17:18 +0100)]
v3-4-ctdb: Bump ctdb vendor patch level to 15

13 years agos3:winbind killed winbind child logs back trace
Christian Ambach [Wed, 10 Nov 2010 17:37:02 +0000 (18:37 +0100)]
s3:winbind killed winbind child logs back trace

change the signal that the winbind parent sends to a children
that timed out answering a request from SIGTERM to SIGXCPU

By adding this differentation, it is possible to dump
a backtrace of the child only in this case, not when winbind
is shutting down
The backtrace is meant as a debug aid to determine what
a child was waiting for when it timed out

13 years agos3:util add log_stack_trace_with_level
Christian Ambach [Wed, 10 Nov 2010 17:35:19 +0000 (18:35 +0100)]
s3:util add log_stack_trace_with_level

add a new function log_stack_trace_with_level to specify
the debug level with which backtraces will be written to the log

13 years agos3: Make winbind recover from a signing error
Volker Lendecke [Wed, 17 Nov 2010 15:56:28 +0000 (08:56 -0700)]
s3: Make winbind recover from a signing error

When winbind sees a signing error on the smb connection to a DC (for whatever
reason, our bug, network glitch, etc) it should recover properly. The "old"
code in clientgen.c just closed the socket in this case. This is the right
thing to do, this connection is spoiled anyway. The new, async code did not do
this so far, which led to the code in winbindd_cm.c not detect that we need to
reconnect.

13 years agov3-4-ctdb: Bump ctdb vendor patch level to 14
Volker Lendecke [Tue, 2 Nov 2010 16:18:31 +0000 (17:18 +0100)]
v3-4-ctdb: Bump ctdb vendor patch level to 14

13 years agov3-4-ctdb: Bump ctdb vendor patch level to 13
Michael Adam [Wed, 13 Oct 2010 14:57:26 +0000 (16:57 +0200)]
v3-4-ctdb: Bump ctdb vendor patch level to 13

13 years agos3: Pass tdb_flags to ctdbd when attaching to a db
Volker Lendecke [Mon, 25 Oct 2010 09:07:36 +0000 (11:07 +0200)]
s3: Pass tdb_flags to ctdbd when attaching to a db

This is required to make ctdb create databases with INCOMPATIBLE_HASH

13 years agos3: use TDB_INCOMPATIBLE_HASH (the jenkins hash) on all TDB_CLEAR_IF_FIRST tdb's.
Stefan Metzmacher [Thu, 21 Oct 2010 10:37:51 +0000 (12:37 +0200)]
s3: use TDB_INCOMPATIBLE_HASH (the jenkins hash) on all TDB_CLEAR_IF_FIRST tdb's.

In the backport we only use TDB_INCOMPATIBLE_HASH if CLEAR_IF_FIRST
was also set, that should make downgrades easier to handle.

(similar to commit f98d217514433cd06887f8c0217a7835392f0375)

metze

13 years agotdb: TDB_INCOMPATIBLE_HASH, to allow safe changing of default hash.
Rusty Russell [Thu, 21 Oct 2010 10:09:15 +0000 (12:09 +0200)]
tdb: TDB_INCOMPATIBLE_HASH, to allow safe changing of default hash.

This flag to tdb_open/tdb_open_ex effects creation of a new database:
1) Uses the Jenkins lookup3 hash instead of the old gdbm hash if none is
   specified,
2) Places a non-zero field in header->rwlocks, so older versions of TDB will
   refuse to open it.

This means that the caller (ie Samba) can set this flag to safely
change the hash function.  Versions of TDB from this one on will either
use the correct hash or refuse to open (if a different hash is specified).
Older TDB versions will see the nonzero rwlocks field and refuse to open
it under any conditions.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked (modified) from commit 2dcf76c9247ff02a1779000dbbecdc418473ca41)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agotdb: automatically identify Jenkins hash tdbs
Rusty Russell [Fri, 24 Sep 2010 06:09:43 +0000 (15:39 +0930)]
tdb: automatically identify Jenkins hash tdbs

If the caller to tdb_open_ex() doesn't specify a hash, and tdb_old_hash
doesn't match, try tdb_jenkins_hash.

This was Metze's idea: it makes life simpler, especially with the upcoming
TDB_INCOMPATIBLE_HASH flag.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit ccac258d14dda7d8a994a7b80474ce6d85478a6d)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3:configure: build common/hash.o from lib/tdb
Stefan Metzmacher [Thu, 21 Oct 2010 12:10:36 +0000 (14:10 +0200)]
s3:configure: build common/hash.o from lib/tdb

metze

13 years agotdb: fix non-WAF build, commit 1.2.6 ABI file.
Rusty Russell [Thu, 21 Oct 2010 10:11:00 +0000 (12:11 +0200)]
tdb: fix non-WAF build, commit 1.2.6 ABI file.

Sorry Jeremy.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked (modified) from commit b7cd6af5b45840a3588ad0cd50b4414f32f8b792)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agotdb: add Bob Jenkins lookup3 hash as helper hash.
Rusty Russell [Thu, 21 Oct 2010 10:02:01 +0000 (12:02 +0200)]
tdb: add Bob Jenkins lookup3 hash as helper hash.

This is a better hash than the default: shipping it with tdb makes it easy
for callers to use it as the hash by passing it to tdb_open_ex().

This version taken from CCAN and modified, which took it from
http://www.burtleburtle.net/bob/c/lookup3.c.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked (modified) from commit 3258cf3f11bf7c68a2e69e1808c4551cc899725a)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agolib/tdb: fix c++ build warning in tdb_header_hash().
Günther Deschner [Mon, 20 Sep 2010 23:01:51 +0000 (16:01 -0700)]
lib/tdb: fix c++ build warning in tdb_header_hash().

Guenther
(cherry picked from commit 1585c4df68a66569524a41def95488666dd827dd)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agotdb: put example hashes into header, so we notice incorrect hash_fn.
Rusty Russell [Thu, 21 Oct 2010 09:55:19 +0000 (11:55 +0200)]
tdb: put example hashes into header, so we notice incorrect hash_fn.

This is Stefan Metzmacher <metze@samba.org>'s patch with minor changes:
1) Use the TDB_MAGIC constant so both hashes aren't of strings.
2) Check the hash in tdb_check (paranoia, really).
3) Additional check in the (unlikely!) case where both examples hash to 0.
4) Cosmetic changes to var names and complaint message.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked (modified for v3-4) from commit 786b7263000dedcb97e7369402e2e9dc967e36c4)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3: Add some DEBUG
Volker Lendecke [Tue, 19 Oct 2010 06:59:14 +0000 (08:59 +0200)]
s3: Add some DEBUG

13 years agos3: Cope with EINTR in smbd_[un]lock_socket
Volker Lendecke [Tue, 19 Oct 2010 06:53:21 +0000 (08:53 +0200)]
s3: Cope with EINTR in smbd_[un]lock_socket

13 years agov3-4-ctdb: Bump ctdb vendor patch level to 12
Michael Adam [Wed, 13 Oct 2010 14:57:26 +0000 (16:57 +0200)]
v3-4-ctdb: Bump ctdb vendor patch level to 12

13 years agos3: Fix the async echo responder for netbios keepalives
Volker Lendecke [Wed, 6 Oct 2010 16:24:13 +0000 (18:24 +0200)]
s3: Fix the async echo responder for netbios keepalives

This fixes a crash in the echo responder when the client started to send the
NetBIOS-Level 0x85-style keepalive packets. We did not correctly check the
packet length, so the code writing the signing seqnum overwrote memory after
the malloc'ed area for the 4 byte keepalive packet.

13 years agos3: Stop using the write cache after an oplock break
Volker Lendecke [Sat, 2 Oct 2010 15:07:00 +0000 (17:07 +0200)]
s3: Stop using the write cache after an oplock break

This fixes samba-bug 7715: If "write cache size" is set (a typical tuning knob
that might be applied in critical customer situations by performance experts),
smbd can corrupt data. This fixes it.

13 years agos3: Make the write end of the echo responder pipe non-blocking
Volker Lendecke [Wed, 6 Oct 2010 13:05:59 +0000 (15:05 +0200)]
s3: Make the write end of the echo responder pipe non-blocking

Without this, we can get a writable pipe end, but the writev call on the pipe
will block.

13 years agos3:tests: fix misplaced '...' for grep pattern in test_net_registry.sh
Michael Adam [Wed, 22 Sep 2010 04:00:00 +0000 (06:00 +0200)]
s3:tests: fix misplaced '...' for grep pattern in test_net_registry.sh

13 years agoRevert "v3-4-ctdb: Do not do any logrotation"
Volker Lendecke [Thu, 17 Jun 2010 08:53:56 +0000 (10:53 +0200)]
Revert "v3-4-ctdb: Do not do any logrotation"

This reverts commit 0ce0f33c9bfdb9d0a5364e3902926fcc3a6d8ae1.

13 years agos3: Add "smbcontrol winbindd ip-dropped <local-ip>"
Volker Lendecke [Wed, 29 Sep 2010 10:17:05 +0000 (12:17 +0200)]
s3: Add "smbcontrol winbindd ip-dropped <local-ip>"

This is supposed to improve the winbind reconnect time after an ip address
has been moved away from a box. Any kind of HA scenario will benefit from
this, because winbindd does not have to wait for the TCP timeout to kick in
when a local IP address has been dropped and DC replies are not received
anymore.

13 years agos3: Fix a deadlock between notify_onelevel.tdb and notify.tdb
Volker Lendecke [Wed, 22 Sep 2010 12:23:43 +0000 (05:23 -0700)]
s3: Fix a deadlock between notify_onelevel.tdb and notify.tdb

notify_add() locks notify_onlevel.tdb while having notify.tdb locked.
file_free() calls notify_remove_onelevel(), and due to this talloc hierarchy
problem the tdb record is not unlocked again timely. Thus notify.tdb will be
locked while notify_onelevel still has a lock.

Sorry, Ronnie, for causing you some grey hair and thanks for the stacktraces.

Volker

13 years agolibsmbconf: parse an empty share as empty share, not as NULL.
Michael Adam [Mon, 27 Sep 2010 10:43:39 +0000 (12:43 +0200)]
libsmbconf: parse an empty share as empty share, not as NULL.

This fixes a segfault in net conf import:
Importing a text file with an empty share resulted in a segfault.
Now this creates an empty share in registry config, just as it
should.

Thanks to Gregor Beck <gbeck@sernet.de> for reporting.
(cherry picked from commit 84127dd50420a7d0e8f389d4af15d52fca6cd809)

13 years agos3-net: add roundtrip tests for registry import/export
Gregor Beck [Wed, 29 Sep 2010 13:13:55 +0000 (15:13 +0200)]
s3-net: add roundtrip tests for registry import/export

13 years agos3-net: test: make MALLOC_CHECK verbose on failure
Gregor Beck [Wed, 29 Sep 2010 13:13:26 +0000 (15:13 +0200)]
s3-net: test: make MALLOC_CHECK verbose on failure

13 years agos3-net: add command rpc registry export
Gregor Beck [Wed, 29 Sep 2010 13:12:49 +0000 (15:12 +0200)]
s3-net: add command rpc registry export

13 years agos3-net: add command rpc registry import
Gregor Beck [Wed, 29 Sep 2010 13:11:49 +0000 (15:11 +0200)]
s3-net: add command rpc registry import

13 years agos3-net: add command registry convert
Gregor Beck [Wed, 29 Sep 2010 13:06:05 +0000 (15:06 +0200)]
s3-net: add command registry convert

13 years agos3-net: add command registry export
Gregor Beck [Wed, 29 Sep 2010 13:05:21 +0000 (15:05 +0200)]
s3-net: add command registry export

13 years agos3-net: add command registry import
Gregor Beck [Wed, 29 Sep 2010 13:03:11 +0000 (15:03 +0200)]
s3-net: add command registry import

13 years agos3-registry: add support for registration entries (.reg) files
Gregor Beck [Wed, 29 Sep 2010 12:54:15 +0000 (14:54 +0200)]
s3-registry: add support for registration entries (.reg) files

13 years agos3-lib: add srprs, primitives to build simple recursive parsers
Gregor Beck [Wed, 29 Sep 2010 12:50:33 +0000 (14:50 +0200)]
s3-lib: add srprs, primitives to build simple recursive parsers

13 years agos3-lib: add cbuf, a talloced character buffer
Gregor Beck [Wed, 29 Sep 2010 12:49:40 +0000 (14:49 +0200)]
s3-lib: add cbuf, a talloced character buffer

13 years agos3-util: use pull_reg_multi_sz in reg_pull_multi_sz.
Günther Deschner [Fri, 25 Sep 2009 09:35:46 +0000 (11:35 +0200)]
s3-util: use pull_reg_multi_sz in reg_pull_multi_sz.

Guenther

13 years agoReally enable core dumps in Linux
Rusty Russell [Mon, 20 Sep 2010 04:19:19 +0000 (13:49 +0930)]
Really enable core dumps in Linux

commit e1f1ce68e1f685400a8c68bcec14018e3d1fc29d
Author: Rusty Russell <rusty@rustcorp.com.au>
Date:   Mon Sep 20 13:33:30 2010 +0930

    source3: dump core on Linux, even after seteuid/etc.

    The "dumpable" flag is reset on every call to set*uid, so we need to
    reset it to 1 in the signal handler itself.

    This code dates back to commit ac01fda2b97b 6 years ago :(

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
13 years agoFix bug #7669.
Jeremy Allison [Thu, 9 Sep 2010 13:48:23 +0000 (15:48 +0200)]
Fix bug #7669.

Fix bug #7669 (buffer overflow in sid_parse() in Samba3 and dom_sid_parse in
Samba4).

CVE-2010-3069:

===========
Description
===========

All current released versions of Samba are vulnerable to
a buffer overrun vulnerability. The sid_parse() function
(and related dom_sid_parse() function in the source4 code)
do not correctly check their input lengths when reading a
binary representation of a Windows SID (Security ID). This
allows a malicious client to send a sid that can overflow
the stack variable that is being used to store the SID in the
Samba smbd server.

A connection to a file share is needed to exploit this
vulnerability, either authenticated or unauthenticated
(guest connection).
(cherry picked from commit df20a300758bc12286820e31fcf573bdfc2147bc)

13 years agono need any more to manually create catalog file in build-manpages-nogit
Michael Adam [Mon, 13 Sep 2010 15:27:16 +0000 (17:27 +0200)]
no need any more to manually create catalog file in build-manpages-nogit

13 years agono need any more to create catalog file manually in build-manpages-git
Michael Adam [Mon, 13 Sep 2010 15:26:20 +0000 (17:26 +0200)]
no need any more to create catalog file manually in build-manpages-git

13 years agodocs: use abs_top_builddir instead of BUILDDIR to let configure create correct catalo...
Michael Adam [Mon, 13 Sep 2010 15:18:18 +0000 (17:18 +0200)]
docs: use abs_top_builddir instead of BUILDDIR to let configure create correct catalog file

The use of the catalog file is still controlled by exporting the
XML_CATALOG_FILES variable as described in build/README

13 years agopackaging(RHEL-CTDB): add a comment, why we need precompiled manpages as fallback
Michael Adam [Mon, 13 Sep 2010 09:52:53 +0000 (11:52 +0200)]
packaging(RHEL-CTDB): add a comment, why we need precompiled manpages as fallback

Particularly the version of the docbook XSL style sheets shipped with
RHEL5 have are missing some definitions needed for building the manpages.

13 years agopackaging/RHEL-CTDB: do not use an external docs tarball
Michael Adam [Thu, 9 Sep 2010 15:56:03 +0000 (17:56 +0200)]
packaging/RHEL-CTDB: do not use an external docs tarball

try to build the manpages instead and use a checked in manpage-only tarball
if it does not work

13 years agopackaging/RHEL-CTDB: add a manpages tarball for use if manpage build does not work
Michael Adam [Thu, 9 Sep 2010 15:55:32 +0000 (17:55 +0200)]
packaging/RHEL-CTDB: add a manpages tarball for use if manpage build does not work

13 years agoadd script to build only the manpages (not the complete docs) - no-git version
Michael Adam [Thu, 9 Sep 2010 15:25:22 +0000 (17:25 +0200)]
add script to build only the manpages (not the complete docs) - no-git version

this version uses make clean to clean the source tree before building

13 years agoadd script to build only the manual pages (not all the docs) - git version
Michael Adam [Thu, 9 Sep 2010 15:24:30 +0000 (17:24 +0200)]
add script to build only the manual pages (not all the docs) - git version

the git version uses git clean to clean the docs source tree.

13 years agopackaging/RHEL-CTDB: untangle the various %doc entries to single lines
Michael Adam [Thu, 9 Sep 2010 15:14:20 +0000 (17:14 +0200)]
packaging/RHEL-CTDB: untangle the various %doc entries to single lines

13 years agodocs:vfs_gpfs: improve the CAVEAT section on run and build time dependencies
Michael Adam [Mon, 30 Aug 2010 12:49:16 +0000 (14:49 +0200)]
docs:vfs_gpfs: improve the CAVEAT section on run and build time dependencies

13 years agodocs-xml/vfs_gpfs: document 'gpfs:refuse_dacl_protected'
Stefan Metzmacher [Mon, 30 Aug 2010 08:45:52 +0000 (10:45 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:refuse_dacl_protected'

metze
(cherry picked from commit fc79f358eb6a1dd7ed2e5f5b1e31fb664a182595)

13 years agodocs-xml/vfs_gpfs: document 'gpfs:merge_writeappend'
Stefan Metzmacher [Mon, 30 Aug 2010 08:31:38 +0000 (10:31 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:merge_writeappend'

metze
(cherry picked from commit 4d76c18f78742ba92b4772037ac306b567351ca1)

13 years agodocs-xml/vfs_gpfs: document 'gpfs:winattr'
Stefan Metzmacher [Mon, 30 Aug 2010 08:24:52 +0000 (10:24 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:winattr'

metze
(cherry picked from commit 6cf66a04ad690e78311411e2195b3a1710953262)

13 years agodocs-xml/vfs_gpfs: document 'gpfs:getrealfilename'
Stefan Metzmacher [Mon, 30 Aug 2010 08:12:41 +0000 (10:12 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:getrealfilename'

metze
(cherry picked from commit a8a704001e5da10fae5df5fc2856d06250739248)

13 years agodocs-xml/vfs_gpfs: document 'gpfs:leases'
Stefan Metzmacher [Mon, 30 Aug 2010 07:29:46 +0000 (09:29 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:leases'

metze
(cherry picked from commit 196699a6a1412687f7d5fe24c506577002dd769e)

13 years agodocs-xml/vfs_gpfs: document 'gpfs:sharemodes'
Stefan Metzmacher [Mon, 30 Aug 2010 07:01:21 +0000 (09:01 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:sharemodes'

metze
(cherry picked from commit d35d846db14a4bb28a97a7bab6dbfdbe7a62b593)

13 years agos3: Print the IP of the server that stopped responding
Volker Lendecke [Wed, 1 Sep 2010 10:55:18 +0000 (12:55 +0200)]
s3: Print the IP of the server that stopped responding

13 years agov3-4-ctdb: fix typo in README
Michael Adam [Tue, 24 Aug 2010 19:40:21 +0000 (21:40 +0200)]
v3-4-ctdb: fix typo in README

13 years agoAttempt to fix the build on AIX, that system seems to have a #define for s_type
Volker Lendecke [Sun, 28 Mar 2010 14:22:26 +0000 (16:22 +0200)]
Attempt to fix the build on AIX, that system seems to have a #define for s_type

13 years agos3: Attempt to fix the build on AIX, shm_ptr seems to be a macro there
Volker Lendecke [Mon, 29 Mar 2010 05:24:00 +0000 (07:24 +0200)]
s3: Attempt to fix the build on AIX, shm_ptr seems to be a macro there

13 years agov3-4-ctdb: Attempt to fix a segfault in notify_onelevel
Volker Lendecke [Tue, 17 Aug 2010 11:20:02 +0000 (13:20 +0200)]
v3-4-ctdb: Attempt to fix a segfault in notify_onelevel

13 years agos3: Reduce the load on the echo handler
Volker Lendecke [Thu, 12 Aug 2010 10:55:11 +0000 (12:55 +0200)]
s3: Reduce the load on the echo handler

If the parent is fast enough, the echo handler should not step in. When the
socket becomes readable, the echo handler goes to sleep for a second. If within
that second, the parent has picked up the SMB request from the net, the echo
handler will just go back to select().

13 years agov3-4-ctdb: Bump ctdb vendor patch level to 11
Michael Adam [Mon, 9 Aug 2010 15:46:12 +0000 (17:46 +0200)]
v3-4-ctdb: Bump ctdb vendor patch level to 11

13 years agov3-4-ctdb: fail db_open_ctdb if ctdb is not around
Volker Lendecke [Fri, 6 Aug 2010 10:32:30 +0000 (12:32 +0200)]
v3-4-ctdb: fail db_open_ctdb if ctdb is not around

13 years agoFurther refine the time_audit warning message
Volker Lendecke [Wed, 28 Jul 2010 15:02:43 +0000 (17:02 +0200)]
Further refine the time_audit warning message

13 years agos3: Modify the warning time_audit warning message
Volker Lendecke [Wed, 28 Jul 2010 09:21:50 +0000 (11:21 +0200)]
s3: Modify the warning time_audit warning message

Now we have

System call "disk_free" took unexpectedly long (0.01 seconds) -- check your file system and disks!

13 years agos3: Log the correct core path on Linux if core_pattern is set
Volker Lendecke [Fri, 23 Jul 2010 10:22:23 +0000 (12:22 +0200)]
s3: Log the correct core path on Linux if core_pattern is set

Contributions from Bill Hymas, IBM

13 years agov3-4-ctdb: Bump up the vendor patch level to 10
Volker Lendecke [Mon, 5 Jul 2010 11:00:40 +0000 (13:00 +0200)]
v3-4-ctdb: Bump up the vendor patch level to 10

13 years agov3-4-ctdb: Re-arrange winbindd_ads.c:query_user
Volker Lendecke [Thu, 1 Jul 2010 14:31:30 +0000 (16:31 +0200)]
v3-4-ctdb: Re-arrange winbindd_ads.c:query_user

We can't access the LDAP message after nss_get_info_cached has potentially
destroyed the ads_struct

13 years agos3: Fix a winbind crash
Volker Lendecke [Fri, 25 Jun 2010 09:47:30 +0000 (11:47 +0200)]
s3: Fix a winbind crash

nss_get_info_cached might deep inside sequence_number() invalidate the
ads_struct without telling its callers.

13 years agos3: Fix a winbind crash
Volker Lendecke [Tue, 22 Jun 2010 13:59:44 +0000 (15:59 +0200)]
s3: Fix a winbind crash

nss_get_info_cached might have invalidated "ads" deep inside.

13 years ago v3-4-ctdb: Bump up the vendor patch level to 9 3.4.7-ctdb-9
Michael Adam [Wed, 23 Jun 2010 11:07:23 +0000 (13:07 +0200)]
 v3-4-ctdb: Bump up the vendor patch level to 9

13 years agos3:net rpc registry: make getsd succeed when key sd only gives access to SD not key...
Michael Adam [Mon, 21 Jun 2010 10:32:14 +0000 (12:32 +0200)]
s3:net rpc registry: make getsd succeed when key sd only gives access to SD not key contents

You don't need the REG_KEY_READ permissions to access the SD of a key.
And for instance, the key HKLM\security ususally has no specific bits
set for builtin\administrators, but the READ_CONTROL_ACCESS.
I.e. builtin\administrators can get the sd but not enumerate the key.

13 years agos3:idmap_ldap: use idmap_rw_new_mapping in idmap_ldap_new_mapping
Michael Adam [Wed, 23 Jun 2010 10:02:31 +0000 (12:02 +0200)]
s3:idmap_ldap: use idmap_rw_new_mapping in idmap_ldap_new_mapping

13 years agos3:idmap_ldap: add idmap_rw_ops to idmap_ldap_context and init in db_init()
Michael Adam [Wed, 23 Jun 2010 10:18:35 +0000 (12:18 +0200)]
s3:idmap_ldap: add idmap_rw_ops to idmap_ldap_context and init in db_init()

13 years agos3:idmap_tdb: use idmap_rw_new_mapping in idmap_tdb_new_mapping
Michael Adam [Wed, 23 Jun 2010 10:02:31 +0000 (12:02 +0200)]
s3:idmap_tdb: use idmap_rw_new_mapping in idmap_tdb_new_mapping

13 years agos3:idmap_tdb: add idmap_rw_ops to idmap_tdb_context and initialize them in init_db
Michael Adam [Wed, 23 Jun 2010 10:12:37 +0000 (12:12 +0200)]
s3:idmap_tdb: add idmap_rw_ops to idmap_tdb_context and initialize them in init_db

13 years agos3:idmap_tdb2: use idmap_rw_new_mapping in idmap_tdb2_new_mapping
Michael Adam [Wed, 23 Jun 2010 10:02:31 +0000 (12:02 +0200)]
s3:idmap_tdb2: use idmap_rw_new_mapping in idmap_tdb2_new_mapping