[SCM] SAMBA-CTDB repository - branch samba-3.4.2-ctdb-stable created - 3.4.2-ctdb-23
Michael Adam
obnox at samba.org
Tue Mar 16 01:32:34 MDT 2010
The branch, samba-3.4.2-ctdb-stable has been created
at c20e3e402bd3b256b4ea5dd7f9f84b5336930bb7 (commit)
- Log -----------------------------------------------------------------
commit c20e3e402bd3b256b4ea5dd7f9f84b5336930bb7
Author: Volker Lendecke <vl at samba.org>
Date: Tue Feb 16 16:44:58 2010 +0100
v3-4-ctdb: Bump ctdb vendor patch level to 23
commit 5c54ae35b4356549caa691abd8d2b3eab36de5ec
Author: Volker Lendecke <vl at samba.org>
Date: Tue Feb 16 15:21:25 2010 +0100
s3: Fix timeout calculation if g_lock_lock is given a timeout < 60s
Detected while showing this code to obnox :-)
commit 31a3d1c5fef0688548cde5224f2196c84d866b57
Author: Volker Lendecke <vl at samba.org>
Date: Tue Feb 16 12:31:58 2010 +0100
s3: Slightly increase parallelism in g_lock
There's no need to still hold the g_lock tdb-level lock while telling the
waiters to retry
commit 8136b31a24716a405c5e29f00d291e3979bc939a
Author: Volker Lendecke <vl at samba.org>
Date: Tue Feb 16 12:28:53 2010 +0100
s3: Avoid starving locks when many processes die at the same time
In g_lock_unlock we have a little race between the process_exists and
messaging_send call: We only send to 5 waiters now, they all might have died
between us checking their existence and sending the message. This change makes
g_lock_lock retry at least once every minute.
commit f373961ff38f0d9f6b7ef866b6cb30f653fc76b7
Author: Volker Lendecke <vl at samba.org>
Date: Tue Feb 16 12:22:08 2010 +0100
s3: Avoid a thundering herd in g_lock_unlock
Only notify the first 5 pending lock waiters. This avoids a thundering herd
problem that is really nasty in a cluster. It also makes acquiring a lock a bit
more FIFO, lock waiters are added to the end of the array.
commit e577980623ea64a852bac569bf50fb9c92d98b7b
Author: Volker Lendecke <vl at samba.org>
Date: Mon Feb 15 16:57:16 2010 +0100
s3: Optimize g_lock_lock for a heavily contended case
Only check the existence of the lock owner in g_lock_parse, check the rest of
the records only when we got the lock successfully. This reduces the load on
process_exists which can involve a network roundtrip in the clustered case.
commit 0357851c0c8e115e92c89956b28c0468182e93d1
Author: Volker Lendecke <vl at samba.org>
Date: Mon Feb 15 16:49:46 2010 +0100
s3: Fix handling of processes that died in g_lock
g_lock_parse might have thrown away entries from the locks array because the
processes were not around anymore. Don't store the orphaned entries.
commit dd9ab62a6d8b247ee95f304b3d24469cff6553b8
Author: Volker Lendecke <vl at samba.org>
Date: Mon Feb 15 16:35:06 2010 +0100
s3: Fix a typo
commit 968e731d7c2b905d816ba283a096195b1a964539
Author: Volker Lendecke <vl at samba.org>
Date: Wed Feb 10 10:21:28 2010 +0100
v3-4-ctdb: Bump ctdb vendor patch level to 22
commit 073d77818ba702a0eee37715615db46d3b1dce25
Author: Volker Lendecke <vl at samba.org>
Date: Fri Feb 12 12:06:50 2010 +0100
s3: notify_onelevel does not use seqnums, so don't open asking for it
commit 4610cb0764ba81a0339af60a2dbaeaf16e4713b7
Author: Andrew Tridgell <tridge at samba.org>
Date: Fri Feb 5 14:25:03 2010 +1100
s3-events: make the old timed events compatible with tevent
tevent ensures that a timed event is only called once. The old events
code relied on the called handler removing the event itself. If the
handler removed the event after calling a function which invoked the
event loop then the timed event could loop forever.
This change makes the two timed event systems more compatible, by
allowing the handler to free the te if it wants to, but ensuring it is
off the linked list of events before the handler is called, and
ensuring it is freed even if the handler doesn't free it.
commit 5b6b12894fb643d303cbfc4efb5c1d026e4cbd7d
Author: Andrew Tridgell <tridge at samba.org>
Date: Fri Feb 5 12:42:06 2010 +1100
s3-smbd: add a rate limited cleanup of brl, connections and locking db
On unclean shutdown we can end up with stale entries in the brlock,
connections and locking db. Previously we would do the cleanup on
every unclean exit, but that can cause smbd to be completely
unavailable for several minutes when a large number of child smbd
processes exit.
This adds a rate limited cleanup of the databases, with the default
that cleanup happens at most every 20s
commit f3b1f9e83af2276300157de3fbcc90672721d9b1
Author: Andrew Tridgell <tridge at samba.org>
Date: Thu Feb 4 18:02:52 2010 +1100
s3-brlock: we don't need these MSG_SMB_UNLOCK calls now
These have been replaced with the min timeout in blocking.c
commit 5239e4376a1f725e9a096e221d74aa3d28a8c692
Author: Andrew Tridgell <tridge at samba.org>
Date: Fri Feb 5 20:59:43 2010 -0800
s3-brlock: add a minimim retry time for pending blocking locks
When we are waiting on a pending byte range lock, another smbd might
exit uncleanly, and therefore not notify us of the removal of the
lock, and thus not trigger the lock to be retried.
We coped with this up to now by adding a message_send_all() in the
SIGCHLD and cluster reconfigure handlers to send a MSG_SMB_UNLOCK to
all smbd processes. That would generate O(N^2) work when a large
number of clients disconnected at once (such as on a network outage),
which could leave the whole system unusable for a very long time (many
minutes, or even longer).
By adding a minimum re-check time for pending byte range locks we
avoid this problem by ensuring that pending locks are retried at a
more regular interval.
commit 2e11163ea55778c7c7c34a12059081b87a970d56
Author: Michael Adam <obnox at samba.org>
Date: Tue Feb 9 08:00:06 2010 +0100
packaging(RHEL-CTDB): adapt configure.rpm to match the spec-file configure call
Michael
commit b14f7a5de4055c10f0e1a4f97e8ec96994b80104
Author: Abhidnya P Chirmule <achirmul at in.ibm.com>
Date: Wed Jan 6 19:45:24 2010 +0100
s3: Add a vfs_time_audit module
This warns if a file system is slow
commit cb39faaa1dd3e70ba61d9e26c0117fa9c46c351a
Author: Michael Adam <obnox at samba.org>
Date: Mon Feb 8 15:49:35 2010 +0100
v3-4-ctdb: bump ctdb vendor patch level to 21
commit 0710d76be8858fb6aa38d58b27fd8c8888e90edc
Author: Michael Adam <obnox at samba.org>
Date: Mon Feb 8 11:01:47 2010 +0100
s3:registry: eliminate race condition in creating/scanning sorted subkeys
Called, from key_exists, scan_sorted_subkeys re-creates the sorted
subkeys record of the given key and then searches through it.
The race is that between creation and parsing of the sorted subkey
record, another process that stores some other subkey of the same
parent key will delete the sorted subkey record, resulting in an
WERR_BADFILE of an operation that should actually succeed.
This patch fixes the issue by wrapping the creation and parsing
into a transaction.
Michael
commit 381137d4f1fef5c6c686b805fb0e320212958e2a
Author: Michael Adam <obnox at samba.org>
Date: Wed Feb 3 17:16:57 2010 +0100
v3-4-ctdb: Bump ctdb vendor patch level to 20
Michael
commit b754d433865c8fbc396885e880218be8985c1cec
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 29 15:04:25 2010 +0100
s3:make "net conf addshare" atomic by wrapping all writes in one transaction
Michael
commit 1b2f479ad471592f0b53a4c6dc38f138cda2b7a5
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 25 22:41:37 2010 +0100
v3-4-ctdb: bump the ctdb vendor patch level to 19
Michael
commit 83ca4995b1afb9ee57ef5c3610b35ee05af8fbf1
Author: Michael Adam <obnox at samba.org>
Date: Sat Jan 23 01:17:06 2010 +0100
s3:g_lock: remove a nested event loop, replacing the inner loop by select
This made smbd crash in g_lock_lock() when trying to start a
transaction on a db with an already started transaction,
e.g. in a tcon_and_X where the share_info.tdb was not yet
initialized but share_info.tdb was already locked by another
process or writing acces to the winreg rpc pipe where the
registry tdb was already locked by another process.
What we really _want_ to do here by design is to react to
MSG_DBWRAP_G_LOCK_RETRY messages that are either sent
by a client doing g_lock_unlock or by ourselves when
we receive a CTDB_SRVID_SAMBA_NOTIFY or
CTDB_SRVID_RECONFIGURE message from ctdbd, i.e. when
either a client holding a lock or a complete node
has died.
Doing this properly involves calling tevent_loop_once(),
but doing this here with the main ctdbd messaging context
creates a nested event loop when g_lock_lock() is called
from the main event loop.
So as a quick fix, we act a little corasely here: we do
a select on the ctdb connection fd and when it is readable
or we get EINTR, then we retry without actually parsing
any ctdb packages or dispatching messages. This means that
we retry more often than necessary and intended by design,
but this does not harm and it is unobtrusive. When we have
finished, the main loop will pick up all the messages and
ctdb packets. The only extra twist is that we cannot use
timed events here but have to handcode a timeout for select.
Michael
commit 2b8ad811f1679659753be763684f379e20f2a142
Author: Michael Adam <obnox at samba.org>
Date: Sat Jan 23 00:05:15 2010 +0100
s3:ctdb_conn: add ctdbd_conn_get_fd() to get the fd out of the ctdb connection
Michael
commit 67ffcac02fb8d4ffc2a22e061bc01fd1b62296cb
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 22 15:56:28 2010 +0100
s3:g_lock: remove an unreached code path.
Michael
commit 3495e4ab6b911e5c6777c62a51ad94a2b6e9d323
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 18 13:17:28 2010 +0100
v3-4-ctdb: bump the ctdb vendor patch level to 18.
Michael
commit 4ef17d96be14e61a1ee3cbdeb806f9bfaf4b0057
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 18 17:26:04 2010 +0100
s3:dbwrap_ctdb: fix reading/storing of special key __db_sequence_number__
The key for reading and writing was inconsistent due to a
off by one data length.
Michael
commit d26d1e48f5029640cda6eacf12144532a5b43d98
Author: Volker Lendecke <vl at samba.org>
Date: Thu Jan 14 18:26:01 2010 +0100
v3-4-ctdb: Do not do any logrotation
commit 85755eae6161111f1efaa95719d5c893c801e5de
Author: Michael Adam <obnox at samba.org>
Date: Wed Jan 13 23:53:54 2010 +0100
s3:dbwrap_ctdb: exit early when nothing has been written in transaction_commit.
This skips update of the __db_sequence_number__ record when nothing else has
been written. There are transactions that are just openend and then nothing
is written until transaction_commit is called. This is for instance the case
with registry initialization routines: They start a transaction and only
write somthing when the registry has not been initialized yet.
So this change will skip many db_seqnum bumps and TRANS3_COMMIT roundtrips.
Michael
commit af5e8f691c9dbe0da9a30ee413bff40bd689452e
Author: Michael Adam <obnox at samba.org>
Date: Wed Jan 13 23:51:34 2010 +0100
s3:dbwrap_ctdb: fix brown paperbag bug in ctdb_transaction_commit.
I carefully prepared the return value only to "return 0;" at the bottom. :-(
This may well have hit us for instance in the nested cancel case
and produced random errors.
Michael
commit b2e840b111b43736d14d359e89ee8a17487531f5
Author: Michael Adam <obnox at samba.org>
Date: Thu Jan 7 13:59:38 2010 +0100
v3-4-ctdb: bump the ctdb vendor patch level to 17.
Michael
commit 68747f49c7338a905ed9beac6300b20c0a8a064e
Author: Michael Adam <obnox at samba.org>
Date: Wed Jan 6 00:37:21 2010 +0100
s3:dbwrap_ctdb: fix logic error in pull_newest_from_marshall_buffer().
The logic bug was that if a record was found in the marshall buffer,
then always the ctdb header of tha last record in the marshall buffer
was returned, and not the ctdb header of the last occurrence of the
requested record.
This is fixed by introducing an additional temporary variable.
Michael
commit b130fa9d595893621c8f5b9088f4e123bc9644c5
Author: Michael Adam <obnox at samba.org>
Date: Tue Jan 5 16:17:27 2010 +0100
s3:dbwrap_ctdb: fix an uninitialized variable.
Michael
commit 19f746178841c579a4db31733524f68924859262
Author: Michael Adam <obnox at samba.org>
Date: Thu Dec 17 13:42:34 2009 +0100
v3-4-ctdb: bump the ctdb vendor patch level to 16
Michael
commit 08ef827ee483c408027ccb723c54b49504def982
Author: Michael Adam <obnox at samba.org>
Date: Sat Dec 12 00:38:14 2009 +0100
s3:dbwrap_ctdb: fix two "may be used uninitialized" warnings
Michael
commit 6a9a4aca7762472d2cd1e930c1289314cb72a6ce
Author: Michael Adam <obnox at samba.org>
Date: Sat Dec 12 00:30:37 2009 +0100
s3:dbwrap_ctdb: fix db_ctdb_fetch_db_seqnum_from_db() when NT_STATUS_NOT_FOUND.
Don't treat this as an error but return seqnum 0 instead.
Michael
commit 494281756af631a1ea89dcb56547dc43fdf3c240
Author: Volker Lendecke <vl at samba.org>
Date: Fri Dec 11 16:51:40 2009 +0100
s3:dbwrap: If "-n" is given to dbwrap_torture, open db with CLEAR_IF_FIRST
commit ce5ee6aa7d59bcef185be83d5f3b6cfb8d40e26d
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 11 16:45:38 2009 +0100
s3:build: remove checks for deprecated ctdb controls.
Michael
commit a26696918d4fcb46e19a74b57084605351e6b69b
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 11 14:07:28 2009 +0100
s3:dbwrap_ctdb: maintain a database sequence number that bumps in transactions
For persistent databases, 64bit integer is kept in a special record
__db_sequence_number__. This record is incremented with each completed
transaction.
The retry mechanism for failing TRANS3_COMMIT controls inside the
db_ctdb_transaction_commit() function now relies one a modified
behaviour of ctdbd's treatment of persistent databases in recoveries.
Recently, a special treatment for persistent databases had been
introduced in ctdb (1.0.108) to work around the problems with the
orinal design of persistent transactions.
Now with the rewrite we need to revert to the old behaviour that
ctdb always takes the newest copies of all records.
This change also paves the way for a next step, which will make
recovery use the db seqnum to tell which node has the newest copy
of a persistent db and use that node's copy. This will greatly
reduce the amount of data transferred with each recovery.
Michael
commit 66c2268a58898033c891d14375b3f1ed25fb8b30
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 11 12:30:57 2009 +0100
s3:dbwrap_ctdb: change db_ctdb_transaction_store() to return NTSTATUS.
The return values calculated by the callers were wrong anyways since
the new marshalling code does not set the local tdbs tdb error code.
Michael
commit e76f6cd4efd8e607b0e9dae17fc0a011dbfb9601
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 11 10:35:50 2009 +0100
s3:dbwrap_ctdb: update (C)
Michael
commit 45cc71fefa75a47c56e3714267da771b678d431d
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 4 11:49:21 2009 +0100
build: Add a configure check for CTDB_CONTROL_TRANS3_COMMIT.
This is the new implementation of ctdb transactions using the
global lock feature. It is needed by the current dbwrap_ctdb code.
Michael
commit 4452ca040e2d15ab5ac28787a4cffc0a650e69d2
Author: Volker Lendecke <vl at samba.org>
Date: Fri Dec 11 15:37:52 2009 +0100
s3:torture: add a test LOCAL-DBTRANS to torture dbwrap with transactions.
commit 8ba098c97b03fb45896b80ac68f2b22e3e098356
Author: Michael Adam <obnox at samba.org>
Date: Thu Dec 3 17:29:54 2009 +0100
s3:dbwrap_ctdb: start rewrite of transactions using the global lock (g_lock)
This simplifies the transaction code a lot:
* transaction_start essentially consists of acquiring a global lock.
* No write operations at all are performed on the local database
until the transaction is committed: Every store operation is just
going into the marshall buffer.
* The commit operation calls a new simplified TRANS3_COMMIT control
in ctdb which rolls out thae changes to all nodes including the
node that is performing the transaction.
Michael
commit c2731e36006f54a9e000b84464ba2bf08ebbe6d7
Author: Volker Lendecke <vl at samba.org>
Date: Mon Dec 7 00:36:51 2009 +0100
s3: setup debug for smbtorture
commit 201e6021d215d3025c0e8c26dbdb2126876ff4af
Author: Volker Lendecke <vl at samba.org>
Date: Fri Dec 4 13:22:30 2009 +0100
s3: Add ctdb_conn_msg_ctx()
commit 6cf20428fb2d47f5c16d9e9e1f93d256442d2f65
Author: Volker Lendecke <vl at samba.org>
Date: Sun Oct 25 16:12:12 2009 +0100
s3: Implement global locks in a g_lock tdb
This is the basis to implement global locks in ctdb without depending on a
shared file system. The initial goal is to make ctdb persistent transactions
deterministic without too many timeouts.
commit a0f87e3cc5aaf5d4d93cd511e67fe0afee571c6c
Author: Volker Lendecke <vl at samba.org>
Date: Thu Dec 3 18:43:49 2009 +0100
s3: Add tdb_data_equal
commit 867e7ca81a00b158097d72f8d22f1b63cd872618
Author: Volker Lendecke <vl at samba.org>
Date: Wed Dec 16 04:19:15 2009 +0100
v3-4-ctdb: Bump the vendor patch level to 15
commit 3247e9f96f6632180311d51f85833cd655cfff61
Author: Volker Lendecke <vl at samba.org>
Date: Wed Dec 16 17:22:48 2009 +0100
s3: Correctly handle timeouts for the ping-dc operation
When a DC is too slow responding to the logonCtrl operation, we have to
invalidate the connection. Right now we can not recover from that condition
very well.
commit 24ed4e16292c8cef79dc58083027ac41329d950c
Author: Volker Lendecke <vl at samba.org>
Date: Tue Dec 15 20:17:01 2009 +0100
s3: Add "net registry getvaluesraw"
commit 0793018d0d0cc7463315528e707032f88848dd7b
Author: Christian Ambach <christian.ambach at de.ibm.com>
Date: Wed Dec 2 20:06:37 2009 +0100
streamline some log levels for invalid servicenames
I don't think we need to log the fact that a user gave a wrong sharename in Explorer with the highest log level.
The level of this was not very consistent:
service.c: DEBUG(3,("find_service() failed to find service %s\n", service));
service.c: DEBUG(0,("%s (%s) couldn't find service %s\n",
smb2_tcon.c: DEBUG(1,("smbd_smb2_tree_connect: couldn't find service %s\n",
This changes the last two to 3 as the first one.
Signed-off-by: Christian Ambach <christian.ambach at de.ibm.com>
commit c859996a0c424c5a7073b71dee61a43cf9ae09ef
Author: Michael Adam <obnox at samba.org>
Date: Mon Dec 7 14:29:11 2009 +0100
v3-4-ctdb: Bump the vendor patch level to 14.
Michael
commit c22905c8af1e11aeccb5b13333295383e397bcd6
Author: Michael Adam <obnox at samba.org>
Date: Mon Dec 7 14:27:28 2009 +0100
packaging(RHEL-CTDB): clean some commented out lines from the files sections
Michael
commit 33881e00f2d4cdc4fddb7334a5139f42f15aff78
Author: Michael Adam <obnox at samba.org>
Date: Mon Dec 7 14:26:03 2009 +0100
packaging(RHEL-CTDB): explicitly list library versions in samba-winbind-32bit
Michael
commit 9d830cedaa7b6b471f8c3c91aa09f99017eb7944
Author: Michael Adam <obnox at samba.org>
Date: Mon Dec 7 14:25:32 2009 +0100
packaging(RHEL-CTDB): explicitly list library versions in samba-common
Michael
commit 8b0562e47b9933aff736da03241751dedc75dfe6
Author: Michael Adam <obnox at samba.org>
Date: Mon Dec 7 14:20:24 2009 +0100
packaging(RHEL-CTDB): explicitly list all packaged idmap/nss-info/charset modules
in the samba-common package.
This is to better be able to catch regressions or
build problems.
Michael
commit 6b85ff854500c38094de3e5aca690690b78444de
Author: Michael Adam <obnox at samba.org>
Date: Mon Dec 7 14:16:15 2009 +0100
packaging(RHEL-CTDB): explicitly list all the vfs modules in the main package
Instead of the wildcard list, to better control regressions or
build problems.
Michael
commit bd9f0c9d9f1f56fc99de066953240c63f28c8384
Author: Michael Adam <obnox at samba.org>
Date: Mon Dec 7 14:12:05 2009 +0100
packaging(RHEL-CTDB): add some checks to test the built smbd
Test whether some required features have been built into smbd.
Can be extended...
Michael
commit 1fbff7a55e056f0235f6398129435aff4c8d1e18
Author: Michael Adam <obnox at samba.org>
Date: Mon Dec 7 14:11:32 2009 +0100
packaging(RHEL-CTDB): make everything instead of all in the build stage
Michael
commit 214b5e85d35e9c4ae784691a5a6244360befa4d3
Author: Michael Adam <obnox at samba.org>
Date: Tue Dec 1 15:22:20 2009 +0100
s3:build: fix detection of CTDB headers on systems without system-libtalloc
Michael
commit d3978e760b6d0ced0d854a6ec67da67ed16eba23
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 4 23:29:22 2009 +0100
packaging(RHEL-CTDB): package dbwrap_tool and dbwrap_torture in the common pkg
Michael
commit b296ac84125be1d8f4d43aa89ec5b4cdc60df3e6
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 4 14:53:05 2009 +0100
s3:dbwrap_ctdb: increase the number of commit retries 5-->100
This is to cope with timeouts when recoveries and transactions collide.
Maybe 100 is too hight, but 10 or even 20 have been too low in a
very busy environment.
Michael
commit 51e4c2db0fc1294669b56f4536e7e913297713ab
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 4 14:49:53 2009 +0100
s3:dbwrap_ctdb: increase the rsn of the __transaction_lock__ when storing
so that it is correctly handled by recoveries.
Also set the dmaster explicitly.
Michael
commit ea9d98bea833e7629616484262951ab4de8f4d95
Author: Volker Lendecke <vl at samba.org>
Date: Thu Dec 3 01:55:52 2009 +0100
s3: Fix the code to immediately disconnect from a non-working ctdbd
commit b3028f32653bb9e0cf7000659c3247726307f83c
Author: Volker Lendecke <vl at samba.org>
Date: Tue Dec 1 11:45:03 2009 +0100
Add a low-cost alternative to wbinfo -t: winfo --ping-dc
commit d9b8daa63cd3ca9dc707f86ca30f05bf9eb398d3
Author: Jeremy Allison <jra at samba.org>
Date: Mon Nov 23 19:19:07 2009 -0800
Fix bug #6898 - Samba duplicates file content on appending. Move posix case semantics out from under the VFS. Jeremy.
commit ea9ae65c18b21efae0596795055127e3e04672c2
Author: Michael Adam <obnox at samba.org>
Date: Mon Nov 30 14:52:53 2009 +0100
v3-4-ctdb: bump ctdb vendor patch level to 13
Michael
commit 744e80a0933412c24bdebf88b400e576cbeffcab
Author: Volker Lendecke <vl at samba.org>
Date: Mon Nov 16 12:03:24 2009 +0100
s3: Do not connect to ctdb if it is blocked for some reason
commit d5c6f9f1f0ada80bb4b6557eb6be83d6e807aaf8
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 26 17:58:01 2009 +0100
s3: Fix the winbind piece of 58045: Correctly time out client smb requests
commit 5fb50b51268e80ce755116b1c62957f6069c3741
Author: Stefan Metzmacher <metze at samba.org>
Date: Tue Nov 24 10:36:52 2009 +0100
s3:dbwrap_torture: use timeval_current/timeval_elapsed instead of start_timer/end_timer
metze
commit 18359910687a1981621f994971f7588929b9bc80
Author: Michael Adam <obnox at samba.org>
Date: Tue Nov 24 11:43:56 2009 +0100
s3:fix the merged build of bin/smbtorture4
Michael
commit dd28b38220f1ed09f4af8caccca9246ea2c12eab
Author: Volker Lendecke <vl at samba.org>
Date: Tue Nov 24 16:51:30 2009 +0100
s3: Always try SamLogonEx
Required for cluster systems working in a Samba domain. With NT4 this won't
work, but real NT4 DCs should not be around in environments that pay big bucks
for a cluster... And if they are, they can always install a Samba DC trusting
that NT4 domain.
commit 62f594d732f28a8341ccc93e0ddade9286c6abf7
Author: Michael Adam <obnox at samba.org>
Date: Mon Nov 23 15:40:36 2009 +0100
s3: add dbwrap_torture - a tool to stress test tdb transactions through dbwrap
This can be used to also test tdb transactions on clustered installations
throught ctdb. The test is modeled after the ctdb_transaction.c test program
from the ctdb source code. It runs transactions in a tight loop on a test
database called "transactions.tdb" (by default), increasing a counter in each
iteration. In a clustered environment, a counter is maintained for each node.
Michael
commit c814b84835af8daf9580d21a435c3212bd35c1de
Author: Michael Adam <obnox at samba.org>
Date: Fri Nov 20 17:47:21 2009 +0100
s3:torture: move the torture-specific headers to new torture/torture.h
Michael
commit 833f9f89f8ce8ad447ad79e6ab6c9b3a5479d16d
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Fri Nov 20 10:39:57 2009 +0100
gpfs: fix logic when gpfs:winattr is false (the default!)
On my autocluster setup, it's not set. Maybe it should be? Otherwise
smbclient and some Windows client programs will get errors like:
# smbclient //localhost/data -Uadministrator%XXX
Domain=[VSOFS1] OS=[Unix] Server=[Samba 3.4.2-ctdb-10]
smb: \> put /etc/resolv.conf resolv.conf
NT_STATUS_ACCESS_DENIED closing remote file \resolv.conf
smb: \>
Caused by attempting to update the time on close.
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
Signed-off-by: Michael Adam <obnox at samba.org>
commit 13925751093030f041fa3665c01fa07a354d81ee
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 19 17:22:27 2009 +0100
s3: Avoid races to change the machine password in winbind
The machine password handler has code to deal with every node in the cluster
trying to change the machine password at the same time. However, it is not very
nice to the DC if everyone tries this simultaneously. This adds a random 0-255
second offset to our timed event. When this fires a bit later than strictly
calculated, someone else might have stepped in and have already changed it. The
timed event handler will handle this gracefully, it won't even try to do it
again.
Signed-off-by: Michael Adam <obnox at samba.org>
commit 9d904fa590d34f5836140725882521aa50ec4e72
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 19 17:20:47 2009 +0100
s3: Protect against flooding the DC with pwchange requests
When there is a temporary problem changing passwords we flooded the DC with
pwchange requests. This gives the DC a 60-second break to recover.
Signed-off-by: Michael Adam <obnox at samba.org>
commit 18f360047a89d21bdc453539db66c6c9be2c510a
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 19 17:16:54 2009 +0100
s3: Deal with races for password changes
When two winbinds (in a cluster) change the password at the same time, the
later one gets an NT_STATUS_ACCESS_DENIED. The netlogon session works fine, but
the next time we retry the pwchange, we again get NT_STATUS_ACCESS_DENIED. This
code deals with this race by dropping just the NETLOGON pipe. The next caller
will re-open it automatically with the changed machine credentials.
With this race in place, we also have to recalculate the timeout for the next
pwchange event.
Signed-off-by: Michael Adam <obnox at samba.org>
commit f38a513cdc20af38743f68c4cf3cf94ab58ed27b
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 19 17:14:40 2009 +0100
s3: Re-check the timeout in machine_password_change_handler()
Someone else might have come in between and changed the password since we
created that timed request
Signed-off-by: Michael Adam <obnox at samba.org>
commit 2e250bbf8726fc465ec426766589aa1ca67a38e3
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 19 17:11:32 2009 +0100
s3: Add some debugs to the winbind machine pwchange machinery
Signed-off-by: Michael Adam <obnox at samba.org>
commit 3c6dc1fd8fc81a43ec0bb014974180c7af382022
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 19 11:50:13 2009 +0100
s3: Factor timeval_string out of current_timestring()
Signed-off-by: Michael Adam <obnox at samba.org>
commit 46fd4fbe1d11bf6834ad26e1376068957a7b7725
Author: Günther Deschner <gd at samba.org>
Date: Mon Oct 5 17:04:52 2009 +0200
s3-netlogon: setup NETLOGON credential chain in rpccli_netlogon_set_trust_password() only when needed.
Guenther
Signed-off-by: Michael Adam <obnox at samba.org>
commit 2db5f5bbda842611f9b58a18f0b9dc9d6438d770
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 12 12:34:17 2009 +0100
v3-4-ctdb: Bumb vendor version number to 12
commit 5ea4ada54e1805a349b9ee21f5c2e6e5bb5ea63a
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 12 12:30:58 2009 +0100
s3: Fix shadow copies after the change for in-path @GMT-
commit 5d3977f3267c88912ad1bdcca53df565041f6e55
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 12 12:29:19 2009 +0100
s3: Fix check_reduced_name for access to the share root itself
commit fc79ae0a9f776e41bf30a7c4ba4832b331633c7d
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 12 11:07:15 2009 +0100
s3: Fix debug messages in check_reduced_name
commit 4f6a12a4b275bf574cd57a0936647443e3b63a1d
Author: Volker Lendecke <vl at samba.org>
Date: Wed Nov 11 17:07:32 2009 +0100
v3-4-ctdb: Bumb vendor version number to 11
commit b39bb0f239cdff1155ab421e21e78136323a7e6d
Author: Michael Adam <obnox at samba.org>
Date: Wed Nov 11 00:13:14 2009 +0100
s3:vfs_fs_capabilities: fix a debug message
Michael
commit c313c9806686ebd3926ae0e40146b6a8853f7e35
Author: Volker Lendecke <vl at samba.org>
Date: Mon Nov 9 17:06:48 2009 +0100
s3: Try to avoid dns searches with an empty site
commit 7b4b2604de55f86f972891d419648b8a43042a06
Author: Volker Lendecke <vl at samba.org>
Date: Mon Nov 9 11:06:30 2009 +0100
s3: Fix in-path shadowcopy2 module
commit 4f337138a60a76f1431af3769cd5d075a8755813
Author: Christian Ambach <christian.ambach at de.ibm.com>
Date: Mon Jul 6 14:08:57 2009 +0200
add e2fsprogs-devel as build dependency this is needed for AD because it contains libcom/libcom_err files and headers
Signed-off-by: Christian Ambach <christian.ambach at de.ibm.com>
Signed-off-by: Michael Adam <obnox at samba.org>
commit 3d15e4ceab3e77af9bf1cc24153bf947c6f597aa
Author: Volker Lendecke <vl at samba.org>
Date: Thu Nov 5 15:06:21 2009 +0100
s3: Fix a crash in notify_remove_onelevel when "change notify = no"
commit f23ee07d8ebccc824fb6c15d8b48d4776ca9c49c
Author: Volker Lendecke <vl at samba.org>
Date: Tue Nov 3 05:41:02 2009 +0100
s3: Add parameter "ctdb timeout"
When something in the cluster blocks, it can happen that we wait indefinitely
long for ctdb, just adding to the blocking condition. In theory, nothing should
block, but as someone said "In practice the difference between theory and
practice is larger than in theory". This adds a timeout parameter in seconds,
after which we stop waiting for ctdb and panic.
Signed-off-by: Michael Adam <obnox at samba.org>
commit 479aa9e60e06003dd627aa44ac3eade78a60803c
Author: Michael Adam <obnox at samba.org>
Date: Wed Nov 4 12:26:46 2009 +0100
packaging(RHEL-CTDB): add the current githash to the rpm release number by default
Disable this (to build a release-rpm) by calling
USE_GITHASH=no makerpms.sh
Michael
commit 29173408a3d9050d83aee87b033b0e8937ce9240
Author: Michael Adam <obnox at samba.org>
Date: Tue Nov 3 00:51:27 2009 +0100
s3:registry: add an extra check for dsize==0 to regdb_fetch_keys_internal()
Don't only rely on dptr == NULL.
I stumbled over this one when rewriting some of the dbwrap_ctdb code.
Michael
commit ddc9184de972168ebb8a7f70efb1e1a19800a745
Author: Michael Adam <obnox at samba.org>
Date: Tue Nov 3 00:47:37 2009 +0100
s3:registry: add safety check for return value of tdb_unpack to regdb_fetch_keys_internal()
Prevents segfaults in some situations.
(For a non existent or empty record, we sometimes rely on the fetch operation
to return dsize==0 and sometimes we rely on dptr==NULL.)
Michael
commit b991de4f20eb46410fc38aae9aad675eaa86ab06
Author: Michael Adam <obnox at samba.org>
Date: Sat Oct 31 13:16:34 2009 +0100
s3:dbwrap_ctdb: add debug message to transaction_fetch_start()
for the case that another local process has started a transaction
bewteen releasing the transaction_lock record and starting the
transaction.
Michael
commit 7e9c18c7d46b45bb1a2ed4af1f2aacf401c4ff0b
Author: Michael Adam <obnox at samba.org>
Date: Sat Oct 31 13:13:04 2009 +0100
s3:dbwrap_ctdb: split combined check in two and add descriptive debug
in db_ctdb_transaction_fetch_start() for error conditions when re-fetching
the transaction_lock record inside the transaction
Michael
commit d5cf73232aff9bd7e5ebb8b70c8f28aaea3780a9
Author: Michael Adam <obnox at samba.org>
Date: Thu Oct 29 00:01:45 2009 +0100
s3:dbwrap_ctdb: fix race condition with concurrent transactions on the same node.
In ctdb_transaction_commit(), when the trans2_commit control fails, there
is a race condition in the 1 second sleep between the local transaction_cancel
and the call to ctdb_replay_transaction(): The database is not locked, and
neither is the transaction_lock record. So another client can start and possibly
complete a new transaction in this gap, but only on the same node: The locking
of the transaction_lock record on a different node which involves migration of
the record to the other node has been disabled by introduction of the
transaction_active flag on the db which closes precisely this gap from the start
of the commit until the call to TRANS2_FINISH or TRANS2_ERROR.
But this mechanism does not cover the case where a process on the same node
tries to start a transaction: There is no obstacle to locking the transaction_lock
record because the record does not need to be migrated.
This commit closes this race condition in ctdb_transaction_fetch_start()
by using the new ctdb_ctrl_transaction_active() call to ask the local
ctdb daemon whether it has a transaction running on the database.
If so, the check is repeated until the running transaction is done.
This does introduce an additional call to the local ctdbd when starting
transactions, but it does close the (hopefully) last race condition.
Michael
commit bee87fb72bdf4a2374e4ad341bd3376e963be5b8
Author: Michael Adam <obnox at samba.org>
Date: Wed Oct 28 23:56:59 2009 +0100
s3:configure: add a check for the new CTDB_CONTROL_TRANS2_ACTIVE
Michael
commit 2ba7cb6004251fa0c14a2204bf809803181f76b3
Author: Michael Adam <obnox at samba.org>
Date: Wed Oct 28 23:56:03 2009 +0100
s3:dbwrap_ctdb: add new db_ctdb_transaction_active() that calls CTDB_CONTROL_TRANS2_COMMIT
Michael
commit 0080b44e63e28716b9b44622fa1c2454580a730b
Author: Michael Adam <obnox at samba.org>
Date: Wed Oct 28 01:54:04 2009 +0100
s3:dbwrap_ctdb: fix a race in starting concurrent transactions on a single node
There are two races in concurrent transactions on a single node.
One in starting a transaction and one with replay during commit.
This commit closes the first race by storing the client pid in the
transaction-lock record and comparing the stored pid against its own
pid after releasing the lock and refetching the record inside the
transaction.
Michael
commit 05031c3629d283632af36fe067727a32b643cc6a
Author: Michael Adam <obnox at samba.org>
Date: Wed Oct 28 01:50:15 2009 +0100
s3:dbwrap_ctdb: use db_ctdb_ltdb_fetch() inside db_ctdb_transaction_fetch_start
Michael
commit 28a72732a1f613132044f371533c46b3b4e09be9
Author: Michael Adam <obnox at samba.org>
Date: Wed Oct 28 01:28:38 2009 +0100
s3:dbwrap_ctdb: use db_ctdb_ltdb_fetch() inside db_ctdb_transaction_fetch()
Michael
commit bb3c277954e9ae934d96aa3de6300e62c98a157c
Author: Michael Adam <obnox at samba.org>
Date: Tue Nov 3 00:55:41 2009 +0100
s3:dbwrap_ctdb: add a function db_ctdb_ltdb_fetch()
This fetches a record from the db and splits out the ctdb header.
Michael
commit 21b97f4a498ea712140c6724a762f6b3fb3fc7a7
Author: Michael Adam <obnox at samba.org>
Date: Thu Oct 22 16:27:45 2009 +0200
s3:dbrwap_ctdb: add a function db_ctdb_ltdb_store()
and use it in db_ctdb_store() and db_ctdb_transaction_store().
Michael
commit 9065e4b5f7b4b02179b2263a254a7e7f0c2b508b
Author: Michael Adam <obnox at samba.org>
Date: Thu Oct 22 14:37:51 2009 +0200
s3:dbwrap_ctdb: reformat a comment slightly to enhance clearness.
Michael
commit 2902d4738a2c8207f7d6cf5b998f01db536d58b7
Author: Michael Adam <obnox at samba.org>
Date: Mon May 25 21:59:40 2009 +0200
s3:dbwrap_ctdb: fix some function header comments
Michael
(cherry picked from commit f5a5c6a5dcf6be2486c53138e24f8d76b64f882e)
Signed-off-by: Michael Adam <obnox at samba.org>
commit aab0b67097154b444ddb464d65fe128d33f2dab8
Author: Volker Lendecke <vl at samba.org>
Date: Mon Nov 2 16:59:15 2009 +0100
s3: Fix a 100% CPU loop when ctdbd dies during a traverse
Signed-off-by: Michael Adam <obnox at samba.org>
commit be7a16a43a458bb3033bbd2256882ca17a11c6a1
Author: Michael Adam <obnox at samba.org>
Date: Tue Oct 27 09:25:49 2009 +0100
dbwrap_ctdb: revert code accidentially committed in the vendor patch bump 8->9
Michael
commit 10596be88db644fb6769d30f1560b9852c0565b2
Author: Michael Adam <obnox at samba.org>
Date: Tue Oct 27 09:26:44 2009 +0100
v3-4-ctdb: Bump the ctdb verdor patch level to 10 (for the NEXT release =)
Michael
commit 9442e256ce46ab4c80883a7a2fb793d4ea1f7010
Author: Volker Lendecke <vl at samba.org>
Date: Thu Oct 22 13:04:04 2009 +0200
v3-4-ctdb: Bump the ctdb verdor patch level to 9.
commit 37362895503a11433ee7005a95db1e5d77192361
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Oct 22 13:03:20 2009 +0200
cluster_fatal() exit code should not indicate success.
cluster_fatal() logs a fatal event and then exits with 0. This seems
wrong. Sometimes command like "net" use this code and return
incorrect empty output but then exit with 0.
This simply changes the exit code to 1.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 15ab290f79f516bde3dde6ef9a9cfd55a3bc3a37
Author: Volker Lendecke <vl at samba.org>
Date: Mon Oct 19 12:19:33 2009 +0200
v3-4-ctdb: Bump the ctdb vendor patch level to 8.
commit 89f8610a99297216b1385e47a7468c6b22c7f98a
Author: Volker Lendecke <vl at samba.org>
Date: Fri Oct 16 12:37:27 2009 +0200
s3: Attempt to fix a deadlock between smbd and ctdbd
In Samba we access the notify databases under the locking.tdb lock when closing a file. This leads to a deadlock with ctdb when doing a recovery.
This is a bad hack, and ctdb will need to get fixed for this. But for now, it
seems necessary.
commit 400fd6e97cd036a2ef2189ef59bd8c192bdeff11
Author: Volker Lendecke <vl at samba.org>
Date: Thu Oct 8 14:02:39 2009 +0200
s3: Fix shadow copy display on Windows 7
Windows 7 is a bit more picky on our NT_STATUS_BUFFER_TOO_SMALL. Announce the
right buffer size, the same amount we later check for.
commit 75f3a17787ac117aa08c0d840e01f0d941245505
Author: Volker Lendecke <vl at samba.org>
Date: Wed Oct 14 12:52:48 2009 +0200
v3-4-ctdb: Bump the ctdb verdor patch level to 7.
commit d4901c353f56fcb44730600640a35cb508bc8e4d
Author: Volker Lendecke <vl at samba.org>
Date: Wed Oct 7 14:06:53 2009 +0200
s3:winbind: Only ever handle one event after a select call
While handling an fd event, the situation with other fds can change. I've just
seen a winbind stuck in the accept() call on the privileged pipe. I can only
imagine this happen because under high load we first handled other requests and
meanwhile the client on the privileged pipe went away.
commit 62e8c617b6f5ab176eac221708f92bad09d81351
Author: Abhidnya Chirmule <achirmul at in.ibm.com>
Date: Tue Sep 8 14:11:31 2009 +0200
To set file create/birth time Signed-off-by: Abhidnya Chirmule <achirmul at in.ibm.com>
commit 5d790955f51e8855c86cd661b542874503bd433e
Author: Abhidnya P Chirmule <achirmul at in.ibm.com>
Date: Tue Oct 6 17:14:56 2009 +0200
s3: Add access_mask to the flock VFS call
commit d1b96e54c8416aa3dec8516d5a602be9e504fbcb
Author: Volker Lendecke <vl at samba.org>
Date: Tue Oct 6 14:06:16 2009 +0200
s3:samr: Fix an uninitialized variable
commit 96bd7d634a420b5a61e787e4396d6c6ab03d47a8
Author: Günther Deschner <gd at samba.org>
Date: Thu Aug 20 15:28:19 2009 +0200
s3-idmap: fix two uninitialized variable warnings in idmap_tdb2.
Guenther
commit c657763be55442cf59a44c44e986b911b09c8668
Author: Volker Lendecke <vl at samba.org>
Date: Tue Oct 6 12:09:33 2009 +0200
v3-4-ctdb: Bump the ctdb verdor patch level to 6
commit 7c354a57215213ecdc4c9100bef7ea1f2f214a07
Author: Christian Ambach <christian.ambach at de.ibm.com>
Date: Sun Sep 27 23:34:04 2009 +0200
changed debuglevel for two messages in the GPFS module from 0 to 10 they spammed the logs on a test machine and they are just debug messages, so let's move them to the level of the other debug messages in the file
Signed-off-by: Christian Ambach <christian.ambach at de.ibm.com>
commit e4232686ec9670d5232aa5af81f967ebab054a85
Author: Volker Lendecke <vl at samba.org>
Date: Tue Sep 15 02:19:14 2009 +0200
s3:gpfs: Add support for the gpfs_ftruncate call
commit eb7124bd6cc4f8addfe96756bb6f47285ad3e561
Author: Volker Lendecke <vl at samba.org>
Date: Wed Sep 23 15:47:05 2009 +0200
s3:gencache: Make gencache_del() return success for expired entries
This fixes nasty error messages from "net cache flush"
commit 66ae85e62a392ff81bd277cb4f2ec6512021d8a1
Author: Volker Lendecke <vl at samba.org>
Date: Wed Sep 23 15:41:06 2009 +0200
s3:gencache: Remove some over-paranoid locking
commit 78f5b9bcfc01cf9d1fc246dd687803dad3f3510c
Author: Volker Lendecke <vl at samba.org>
Date: Wed Sep 23 15:21:40 2009 +0200
s3:gencache: Add a "was_expired" argument to gencache_get_data_blob
This is set to true if the routine returns failure due to an existing but
expired entry.
commit bfd7897c06b0fb89b6616b00f900888f07ba5bbb
Author: Andrew Tridgell <tridge at samba.org>
Date: Wed Sep 16 03:22:56 2009 +0200
s3: Fix vfs_shadow_copy2 to allow in-path @GMT-xxx
commit d997a15323f2dc64f1763a1b0ad6a34e736e16f4
Author: Volker Lendecke <vl at samba.org>
Date: Mon Feb 2 11:52:08 2009 +0100
Add a "connectpath" operation to the shadow_copy2 module
commit 7b79149413d5576f0bba3b88bb952818e0b138ea
Author: Volker Lendecke <vl at samba.org>
Date: Thu May 28 19:20:14 2009 +0200
Add SMB_VFS_CONNECTPATH operation
This is required for the shadow_copy2 module and "wide links = no". The file
system snapshots by nature are typically outside of share directory. So the
REALPATH result fails the wide links = no test.
commit 82c6a2734a24b631c57eed3b1f385a500dbe1dba
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jan 30 15:04:44 2009 +0100
Remove a variable used just once
commit b166c901f8162987bc376f1a9873696bd5508db7
Author: Michael Adam <obnox at samba.org>
Date: Fri Sep 11 13:23:34 2009 +0200
s3:dbwrap_ctdb: set dmaster in ctdb_transaction_store() also when updating an existing record
not only when creating a record.
This matches commit e9194a130327d6b05a8ab90bd976475b0e93b06d from ctdb-master.
Michael
Signed-off-by: Michael Adam <obnox at samba.org>
commit 649b15a400b71f43fec711f5d953b728858af27d
Author: Volker Lendecke <vl at samba.org>
Date: Wed Aug 26 14:56:41 2009 +0200
Add a parameter to disable the automatic creation of krb5.conf files
This is necessary because MIT 1.5 can't deal with certain types (Tree Root) of
transitive AD trusts. The workaround is to add a [capaths] directive to
/etc/krb5.conf, which we don't automatically put into the krb5.conf winbind
creates.
The alternative would have been something like a "krb5 conf include", but I
think if someone has to mess with /etc/krb5.conf at this level, it should be
easy to add the site-local KDCs as well.
Next alternative is to correctly figure out the [capaths] parameter for all
trusted domains, but for that I don't have the time right now. Sorry :-)
commit cfa3084aaafe52fa797dde4e2d780edc4bb2e563
Author: Michael Adam <obnox at samba.org>
Date: Thu Aug 20 14:23:22 2009 +0200
v3-4-ctdb: Bump the ctdb verdor patch level to 5.
Michael
commit 6eab2cc76441c870684be335262facc1e522bf92
Author: Michael Adam <obnox at samba.org>
Date: Thu Aug 20 13:37:11 2009 +0200
packaging(RHEL-CTDB): enable parallel build
Michael
commit b9c04d4d9f40edfc263e2c21b4e1159490a0d348
Author: Michael Adam <obnox at samba.org>
Date: Thu Aug 20 13:33:42 2009 +0200
packaging(RHEL-CTDB): fix packaging of pam_winbind.mo file
Michael
commit 1bed121260c788ea7926516aeef7cf6fe826ec56
Author: Volker Lendecke <vl at samba.org>
Date: Wed Aug 19 14:22:09 2009 +0200
s3:dsgetdcname: Fix a crash in dsgetdcname
When returning NT_STATUS_OK we can't leave *info == NULL, this crashes
in is_closest_site called from dsgetdcname().
commit e717b9df6ef2bb21434dde5ddd1f10cd9ede0f9f
Author: Volker Lendecke <vl at samba.org>
Date: Wed Aug 19 14:19:22 2009 +0200
s3:dsgetdcname: Inline dsgetdcname_cache_refresh
commit 3a6383dd9ecd138726b58d85e41b39c12bae0f1d
Author: Michael Adam <obnox at samba.org>
Date: Thu Aug 20 12:55:24 2009 +0200
v3-4-ctdb: Bump the ctdb verdor patch level to 4.
Michael
commit b5a56b919a5d1c52b098ce922b36c0504be4dd5d
Author: Volker Lendecke <vl at samba.org>
Date: Thu Aug 13 06:33:16 2009 +0200
Make refusal of SEC_DESC_DACL_PROTECTED configurable
This adds a parameter "gpfs:refuse_dacl_protected" that defaults to false.
GPFS has no place to store the SEC_DESC_DACL_PROTECTED ACL bit. With this
parameter we give customers an option to either ignore this bit or refuse
setting an ACL with it.
commit a87075ac31f373d4ca54f829c365a43ab191d302
Author: Jeremy Allison <jra at samba.org>
Date: Fri Aug 14 15:06:11 2009 -0700
Use defined names rather than numeric constants to make code clearer. Jeremy.
commit ef8c098ebb2cd9ced458b4b9023e8b260326ed44
Author: Michael Adam <obnox at samba.org>
Date: Mon Aug 10 18:18:19 2009 +0200
gpfs.so: map the file_inherit and dir_inherit flags away for files
GPFS sets inherits dir_inhert and file_inherit flags
to files, too, which confuses windows, and seems to
be wrong anyways.
So when mapping a nfs4 acl to a windows acl, we map these
flags away for files.
Michael
commit 4c774de76eae1f19ad5d4d7cdff8a61d85e85ef0
Author: Volker Lendecke <vl at samba.org>
Date: Thu Jun 25 14:46:17 2009 +0200
Add a \n to a debug message in smbacl4_nfs42win
commit 675a38a77101233425f8e98069602baf14b36289
Author: Volker Lendecke <vl at samba.org>
Date: Sun May 24 22:16:34 2009 +0200
Fix a size_t/int warning
commit 4daa8cd87ea68c8f79835eec32effde83d550898
Author: Michael Adam <obnox at samba.org>
Date: Wed Aug 5 14:09:00 2009 +0200
v3-4-ctdb: Bump the ctdb verdor patch level to 3.
For the next release.
Michael
commit 650bf8e4477d3269dd1c139525f280dc9b1b883f
Author: Michael Adam <obnox at samba.org>
Date: Mon Aug 3 15:30:42 2009 +0200
packaging(RHEL-CTDB): move the idmap and nss_info modules to the common package
In this layout, this is the package that contains winbindd related stuff.
Michael
commit 0aebeeb667fcb8ec4e7ac63295c16e5999f7579d
Author: Michael Adam <obnox at samba.org>
Date: Mon Aug 3 14:32:52 2009 +0200
packaging(RHEL-CTDB): package the winbind_krb5_locator.so plugin
Michael
commit 741e044e9d214eeb2e870a0c1b597d840561f7db
Author: Michael Adam <obnox at samba.org>
Date: Mon Aug 3 14:05:42 2009 +0200
packaging(RHEL-CTDB): package the manpage of the winbind_krb5_locator plugin
Michael
commit 63a29fbe9a4fb6a9e42fc4bc0a9742badca55c71
Author: Michael Adam <obnox at samba.org>
Date: Mon Aug 3 14:04:33 2009 +0200
packaging(RHEL-CTDB): package the manpage of "ldbrename"
Michael
commit 943adcbc9f73fce92490dbca21c6deb88977adec
Author: Michael Adam <obnox at samba.org>
Date: Mon Aug 3 14:04:09 2009 +0200
packaging(RHEL-CTDB): package the manpage of "sharesec"
Michael
commit 302272b9b81a2d8930e5a8d4e13581bcb8cd9fa7
Author: Michael Adam <obnox at samba.org>
Date: Mon Aug 3 13:45:40 2009 +0200
packaging(RHEL-CTDB): pam_winbindd man page has moved from section 7 to 8
This due to updating the docs tarball to the 3.4 docs.
Michael
commit 28cd3b0ed5de8ef18812b8e58fe7949ce1fae6e5
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 15:21:49 2009 +0200
s3:passdb: use transaction_wrapped write in tdbsam_new_rid()
Now all tdb writes in passdb use transactions.
Michael
commit 4a3112d1fb1951342e7cd56b4843db4bec11c138
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 15:15:54 2009 +0200
s3:secrets: use transaction wrapped store in get rand seed.
Now secrets.tdb is only writen with transactions.
Michael
commit b9dcc1da1cc753d45236117c8f827922591bcf3f
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 15:14:57 2009 +0200
s3:dbwrap: add dbwrap_trans_change_int32_atomic()
A transaction wrapper for dbwrap_change_int32_atomic().
Michael
commit 86e95bd5d873d9c383e91f7276fc05dd6f43f29b
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 15:12:39 2009 +0200
s3:dbwrap: export logic of dbwrap_change_int32_atomic into an action function
to prepare for adding a transaction wrapper to dbwrap_change_int32_atomic()
Michael
commit b5ad77bab4cd667db8233a5f41cca3f7f2a924d4
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 15:08:06 2009 +0200
s3:dbwrap: change dbwrap_change_int32_atomic() to take int32_t, not int32
Michael
commit 3ee95ffe22a2598bfcd45bd4b40cee406a323e6f
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:56:32 2009 +0200
s3:winbind: use transaction store in idmap_tdb_set_hwm() to store new hwm.
Btw, the previous code must have failed to warn when exceeding the high_hwm,
because it overwrote hwm with the return value of the dbwrap_store_uint32(),
which does not return the hwm but 0 or -1, depending on success.
Michael
commit fe66aa7b8e8f11671d8b9b41c4de2af188093369
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:45:31 2009 +0200
s3:winbind: fix typo in debug message in idmap_tdb.
Michael
commit 788fcda68d0a8906479c4bfd55eaefed79924e29
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:43:14 2009 +0200
s3:winbind: fix typo in debugmessage of idmap_tdb
Michael
commit 6c3ad2e4d8a53a130c29af68e0baad977ee9f766
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:39:30 2009 +0200
s3:winbind: use transaction in idmap_tdb2_allocate_id_action().
This uses the new dbwrap_trans_change_uint32_atomic()
instead of dbwrap_change_uint32_atomic().
Now all db write operations in idmap_tdb2.c are using
transactions.
Michael
commit 3b4816753ac62a3c46bce53f05b8427818aefd09
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:37:39 2009 +0200
s3:dbwrap: add dbwrap_trans_change_uint32_atomic()
A transaction wrapper for dbwrap_change_uint32_atomic().
Michael
commit 91f039b861ea0c05f145a191d01b14db0a84409a
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:32:31 2009 +0200
s3:dbwrap: export logic of dbwrap_change_uint32_atomic into an action function
to prepare for adding a transaction wrapper to dbwrap_change_uint32_atomic()
Michael
commit 8c9d6b8278e79ced6c9e448b1a3ceebc79698677
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:26:26 2009 +0200
s3:dbwrap: untangle assignment and check in dbwrap_change_int32_atomic()
Michael
commit b31225aa7b13aff05965594ea54f1333553b8067
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:25:29 2009 +0200
s3:dbwrap: untangle assignemend and check in dbwrap_change_uint32_atomic()
Michael
commit a43f0a0fe7fda9527aced41ad0df65f7fa97095b
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:23:26 2009 +0200
s3:dbwrap: don't leak in dbwrap_change_int32_atomic().
Michael
commit e156ad841ae7dc14608426ef133051928a14447a
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:22:37 2009 +0200
s3:dbwrap: don't leak in dbwrap_change_uint32_atomic()
Michael
commit 557b7d8457fce1c898da6c2b1c655c8db37a2757
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:21:03 2009 +0200
s3:dbwrap: change dbwrap_change_int32_atomic() to return NTSTATUS not int32.
Michael
commit 128b076aa4b6a7c972695995e649f7e2316c6bed
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 14:16:11 2009 +0200
s3:dbwrap: change dbwrap_change_uint32_atomic() to return NTSTATUS not uint32_t.
Michael
commit c571c7bb76804ae184a31e84ec3ffc762e3e5b3f
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 13:43:29 2009 +0200
s3:winbind: in idmap_tdb2_sid_to_id(), use transaction wrapped stores.
When a mapping is not found, then the idmap script is called (if defined).
When this gives a reply for the desired sid, this reply is stored in the db.
This patch wraps theses two store operations into a transaction by re-using
the idmap_tdb2_set_mapping_action() function previously defined
for idmap_tdb2_set_mapping().
Michael
commit d9d123b813fa6972dcc6002a6e11bb79cb4b48f0
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 29 13:36:18 2009 +0200
s3:winbind: in idmap_tdb2_id_to_sid(), use transaction wrapped stores.
When a mapping is not found, then the idmap script is called (if defined).
When this gives a reply for the desired id, this reply is stored in the db.
This patch wraps theses two store operations into a transaction by re-using
the idmap_tdb2_set_mapping_action() function previously defined
for idmap_tdb2_set_mapping().
Michael
commit 8c4f8dc38cc76d1e6c7c92dbec678b85e3ad4f5c
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 28 16:53:37 2009 +0200
s3:winbind: use transaction wrapper in idmap_tdb2_allocate_id()
Michael
commit 1c294a929dd3be05092cc311e644babcd53f320e
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 28 13:31:09 2009 +0200
s3:winbind: use transaction wrapper in idmap_tdb2_set_mapping()
Michael
commit 8d9a45b110126809f349a3d4b494c3bd27a2139b
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 21 12:35:48 2009 +0200
s3:dbwrap: use the transaction wrapper in dbwrap_trans_store().
Now dbwrap_util.c contains only one call to each of
transaction_start, transaction_commit and transaction_cancel.
Michael
commit f132c73ec9e3990f6506b4fcc5ae90aa7a93231c
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 21 12:26:14 2009 +0200
s3:dbwrap: use the transaction wrapper in dbwrap_trans_delete().
Michael
commit a789fc2a4b3daa2db47552ca4e925ef469ad42b5
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 15 16:59:07 2009 +0200
s3:dbwrap: fix embarrassing typo :-)
Michael
commit ebd856438562b220ea7dc69815c0c94941f042b5
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 17:16:21 2009 +0200
s3:registry: db backend: add my C
Michael
commit 7d58ab2825595d1b1c441c4c972c740574904b24
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 15 12:50:55 2009 +0200
s3:registry: flush the provided subkey_ctr in regdb_fetch_keys_internal()
This way, we always return what has really been read from the db,
and not more. The callers assume exactly this, but one could hand
in an already pre-filled subkey container...
Michael
commit fcecbb21f4923114dad977b144b981f92eae1a46
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 15 12:47:12 2009 +0200
s3:registry: add function regsubkey_ctr_reinit()
This reinitializes an already allocated regsubkey_ctr structure,
emptying out the subkey array and hash table.
Michael
commit e6996c01aa7e56d09499ea73aed6a746feeffe85
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 15 12:45:43 2009 +0200
s3:registry: turn regdb_fetch_keys_internal() from int to WERROR return type
This way, more error information is propagated to the callers.
Michael
commit 48f36ac4667aaaedca12bfe99baff1d4e5278414
Author: Michael Adam <obnox at samba.org>
Date: Mon Jul 13 17:15:14 2009 +0200
s3:registry: use transaction wrapper in create_sorted_subkeys()
Michael
commit dd18f6e55e12faa8bd9faec3c8ce9140196d0d23
Author: Michael Adam <obnox at samba.org>
Date: Thu Jul 9 12:54:16 2009 +0200
s3:registry: restructure logic of create_sorted_subkes() slightly
This makes it clearer to me, and it also makes it easier to
use the transaction retry wrapper in the next step.
Michael
commit bd2e577789dd5c77a9a915e7d68d729b653ef3db
Author: Michael Adam <obnox at samba.org>
Date: Thu Jul 9 11:04:20 2009 +0200
s3:registry: use transaction wrapper in regdb_delete_subkey().
Michael
commit 5b5741e50533e4dc0f8274d92ed22538aee77c53
Author: Michael Adam <obnox at samba.org>
Date: Thu Jul 9 10:54:18 2009 +0200
s3:registry: add a comment header for the delete_subkey set of commands.
Michael
commit 86cec894733a3529f131e17136b90c86de2aa031
Author: Michael Adam <obnox at samba.org>
Date: Thu Jul 9 10:52:40 2009 +0200
s3:registry: add a comment header for the create_subkey set of functions
Michael
commit b70b8be127401033ac7527a1548d2a8ae2fd4c5c
Author: Michael Adam <obnox at samba.org>
Date: Thu Jul 9 10:41:59 2009 +0200
s3:registry: use transaction wrapper in regdb_create_subkey()
Michael
commit 8c18ecaf673d08e263f129f27ab4d2e9bce1e275
Author: Michael Adam <obnox at samba.org>
Date: Thu Jul 9 10:28:29 2009 +0200
s3:registry: use transaction wrapper in regdb_store_keys_internal().
Michael
commit e5079477047b01174bfde2006441dc277d274822
Author: Michael Adam <obnox at samba.org>
Date: Thu Jul 9 00:21:46 2009 +0200
s3:registry: don't leak to talloc_stack in regdb_store_keys_internal2()
and catch one potential talloc failure.
Michael
commit 5b476bf8d66c0f83fa34a9956b12df959e1830a0
Author: Michael Adam <obnox at samba.org>
Date: Thu Jul 9 00:10:08 2009 +0200
s3:registry: unify exit logic and remove leaking to talloc_stack in regdb_store_keys_internal()
Michael
commit 632d28d63bf428ca189d68090ad7d2b75280b4cc
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 8 17:26:06 2009 +0200
s3:registry: change regdb_store_keys_internal2() to return WERROR
instead of bool for better error propagation.
Michael
commit 075986fe402b8a99b1e8b60cb01b0c52593223c6
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 8 13:58:52 2009 +0200
s3:registry: refactor adding of builtin reg values out
into regdb_ctr_add_value(). For readability.
Michael
commit b0dda21a8c7e5bf632778078d650778a3221da31
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 8 13:10:37 2009 +0200
s3:registry: use transaction wrapper in init_registry_data()
Michael
commit f06abba0bd6948dd496c63570bb6a503875b2d71
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 8 12:38:41 2009 +0200
s3:registry: add regdb_store_values_internal() that takes a db_context argument
Michael
commit c5b8abf556a6713b2e59c874604e97e45be6a118
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 8 12:32:48 2009 +0200
s3:registry: add a regdb_fetch_values_internal() that takes a db_context argument
Michael
commit 416b4d9646180b3f81e645c9d88668c188a5e786
Author: Michael Adam <obnox at samba.org>
Date: Mon Mar 23 23:14:45 2009 +0100
s3:registry: replace typedef REGISTRY_OPS by struct registry_ops
Michael
commit d861a7881a1dd6d291d4ec05e9153f72db7073a5
Author: Michael Adam <obnox at samba.org>
Date: Mon Mar 23 23:05:30 2009 +0100
s3:registry replace typedef REGISTRY_HOOK by struct registry_hook.
Michael
commit 33625ed69f7334641611cf50724cd9a7232ccf7b
Author: Michael Adam <obnox at samba.org>
Date: Mon Mar 23 23:02:57 2009 +0100
s3:registry: replace typedef REGISTRY_KEY by struct registry_key_handle
Michael
commit aa37a0616cd2c7b03acb1a1d8504e7a733a9dabf
Author: Michael Adam <obnox at samba.org>
Date: Mon Mar 23 22:27:59 2009 +0100
s3:registry: replace typedef REGISTRY_VALUE by struct regval_blob
Michael
commit 1ac629e61d3a1db64b71a37997d748745f314c2d
Author: Michael Adam <obnox at samba.org>
Date: Mon Mar 23 18:14:17 2009 +0100
s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.
This paves the way for hiding the typedef and the implementation
from the surface.
Michael
commit 28154a82a8d2599ecae64768a57e79cd590e48c8
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 23:58:03 2009 +0200
s3:registry: use transaction wrapper in init_registry_key().
Michael
commit 0489a77a25247fc720a2a13951edc9b868899869
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 23:03:46 2009 +0200
s3:registry: add db_context argument to init_registry_key_internal()
Michael
commit 0bddd8cad49f541dcbb4f5b88d749a32a0ef1d71
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 12:42:09 2009 +0200
s3:registry: panic upon error at transaction_cancel in create_sorted_subkeys
Michael
commit d659aee9a5bcb8b762fc90c85e25eb0902488a90
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 12:41:09 2009 +0200
s3:registry: fix a comment in create_sorted_subkeys()
Michael
commit 53e4869e9eb3c66948694ced3408ef97a0a4809f
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 12:39:32 2009 +0200
s3:registry: don't loop transaction_commit in create_sorted_subkeys() upon error
This would try to commit a higher level transaction upon commit-error.
Michael
commit 82788790e89050d6e05ea9d13156779a5d282424
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 12:27:26 2009 +0200
s3:registry: in regdb_delete_subkey(), don't use the transaction wrappers.
This way, the db handle gets used explicitly and the core of the
function can be abstracted.
Michael
commit eb09b90fa0e228b39cafbed69dfb8a278f46359a
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 12:24:25 2009 +0200
s3:registry: in regdb_delete_subkey(), panic if transaction_cancel fails
Michael
commit d2c06fbb6a55ee77b1d92f92fa64259ccbedbb7e
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 12:20:23 2009 +0200
s3:registry: panic upon failed transaction_cancel in regdb_create_subkey()
Michael
commit 22a7702455b224f32eadba53261fb78ffe0af239
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 11:41:08 2009 +0200
s3:registry: don't use exported transaction wrappers in regdb_create_subkey()
So that the regdb handle is again explicit and the core of the
function can be abstracted.
Michael
commit c3c8a7c6a28d2c227f764bb9e78d050bc4e4a304
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 11:31:28 2009 +0200
s3:registry: create regdb_store_keys_internal() with db_context argument
and let exported regdb_store_keys() just call regdb_store_keys_internal()
with regdb as an argument. Internally, in reg_backend_db.c, always use the
_internal version.
Michael
commit 7d42aad08b3008a117e744ce75244b812838a7c0
Author: Michael Adam <obnox at samba.org>
Date: Tue Jul 7 11:11:10 2009 +0200
s3:registry: rename regdb_store_keys_internal() to regdb_store_keys_internal2()
Michael
commit 4a23e3618a4b25f4a39044e30024c32076b379cd
Author: Michael Adam <obnox at samba.org>
Date: Fri Jul 3 17:39:17 2009 +0200
s3:registry: create regdb_fetch_keys_internal() with db_context argument
and let exported regdb_fetch_keys() just call regdb_fetch_keys_internal()
with regdb as an argument. Internally, in reg_backend_db.c, always use the
_internal version.
Michael
commit bd3be20aa293b43491b482be889abbd8c61e5390
Author: Michael Adam <obnox at samba.org>
Date: Fri Jul 3 17:18:19 2009 +0200
s3:registry: add db_context argument to scan_parent_subkeys()
Michael
commit 58bbff4c75cfa8382562d6c754dd9e27d0525911
Author: Michael Adam <obnox at samba.org>
Date: Fri Jul 3 17:10:09 2009 +0200
s3:registry: add db_context argument to regdb_fetch_key_internal()
Michael
commit 2417132720b193f70b69456177849ce032e125ff
Author: Michael Adam <obnox at samba.org>
Date: Fri Jul 3 17:00:44 2009 +0200
s3:registry: add db_context argument to regdb_store_keys_internal()
Michael
commit efccb682f6ab44b82f1f7fff27e7265c9d0e6630
Author: Michael Adam <obnox at samba.org>
Date: Fri Jul 3 16:51:26 2009 +0200
s3:registry: add db_context argument to regdb_delete_key_lists()
Michael
commit 6bb99915b46863ef56b2438be5d348e11a9014ea
Author: Michael Adam <obnox at samba.org>
Date: Fri Jul 3 16:48:36 2009 +0200
s3:registry: add db_context argument to regdb_delete_subkeylist()
Michael
commit 5841f45d441f0355aad9a36f41d494f032c4b37c
Author: Michael Adam <obnox at samba.org>
Date: Fri Jul 3 16:44:20 2009 +0200
s3:registry: add db_context argument to regdb_delete_secdesc()
Michael
commit 28813921cc52ae44ef1358f1304da8a9335d7000
Author: Michael Adam <obnox at samba.org>
Date: Fri Jul 3 16:42:20 2009 +0200
s3:registry: add db_context argument to regdb_delete_values()
Michael
commit d0b7cb5f61e902f91f755a96a562f716561adfbc
Author: Michael Adam <obnox at samba.org>
Date: Fri Jul 3 16:40:43 2009 +0200
s3:registry: add db_context argument to regdb_delete_key_with_prefix()
Michael
commit 20cadfdd21cdde56c678cafdead371c66314d91d
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 8 16:16:18 2009 +0200
s3:registry: don't store differently cased entries for the same keys.
This happened for instance during registry initialization, when
entries for HKLM\Software and HKLM\SOFTWARE were created.
Searching these entries was case insensitive though.
But the entries ended up in the subkey-lists anyways.
This is solved by making the subkeys_hash in the regsubkey_container
structs case insensitive (using the new _bystring_upper() wrappers).
Michael
commit 23f57362a33428e0352e2449cf0d08c3d3630b3f
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 15 09:58:02 2009 +0200
s3:dbwrap_util: add my C
Michael
commit 2bb380b00144e37a113260115432abb90a79ec8a
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 8 16:13:07 2009 +0200
s3:dbwrap: add dbwrap_fetch_bystring_upper().
To fetch a key whose name is stored but not given in upper case.
Michael
commit 5724f786ee6fe1402e4e7ddd1551442322b32959
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 8 16:08:41 2009 +0200
s3:dbwrap: add dbwrap_store_bystring_upper().
This stores a key under the uppercase version of the given keyname.
Michael
commit a637561b9cd57e6e04f38ca300d3c8eaa9cb4e74
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 8 16:02:19 2009 +0200
s3:dbwrap: add dbwrap_delete_bystring_upper()
To delete a key whose name is not given in but stored in uppercase.
Michael
commit 14ac3dc5ebcb17206f7f75cbda1d7d6b967192e1
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 15 14:00:42 2009 +0200
s3:dbwrap: add a wrapper dbwrap_trans_do()
This function wraps the action() callback into a db
transaction and the transaction is either committed
or cancelled, depending on the return value of
the action function.
Michael
commit 1c335910311a1b78e0ca2e47f08ec844725ff4fb
Author: Volker Lendecke <vl at samba.org>
Date: Tue Jun 30 14:26:32 2009 +0200
shadow_copy2: The system getrealfilename() can't deal with a 0-length fname
This fixes viewing the content of snapshots in the share root directory. We
have to treat the filename that *just* consists of "@GMT-YYYY.MM.DD-HH.MM.SS"
like the share root, which is the current working directory.
Signed-off-by: Michael Adam <obnox at samba.org>
commit aebe6bcc6ae90a5ee4c703772852bf4dcedc1081
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jul 3 13:28:01 2009 +0200
Align nttrans replies the same way Windows does it
Signed-off-by: Michael Adam <obnox at samba.org>
commit 525044e8d517f3cfe16ad4aa7c0546c4b93398a8
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jul 3 22:36:11 2009 +0200
For non-existent streams we have to return OBJECT_NAME_NOT_FOUND
See the STREAMERROR s3 torture test.
Jeremy, Tim, please check!
Signed-off-by: Michael Adam <obnox at samba.org>
commit 49e7dd722841cea3e3f6a3222a68ac9b057e4209
Author: Volker Lendecke <vl at samba.org>
Date: Thu Apr 30 12:24:51 2009 +0200
Fix notify_onelevel: notify is not necessarily enabled
Thanks to Günther Deschner!
Volker
Signed-off-by: Michael Adam <obnox at samba.org>
commit 209891423c4ba60c92800fd774342fb9b731e4a4
Author: Volker Lendecke <vl at samba.org>
Date: Tue Apr 14 20:39:14 2009 +0200
Add notify_onelevel.tdb
This optimizes non-recursive notifys. For non-recursive notifies we can use a
per-directory file-id indexed notify record. This matters for the Windows
Explorer and IIS cases which do not use recursive notifies. In these cases, we
do not have to shuffle around the whole notify record on every change.
For the cluster case, this improves correctness of the notifies, ctdb only
distributes the tdb seqnum once a second, so we can lose notifies.
Signed-off-by: Michael Adam <obnox at samba.org>
commit e571f1c32bf21fb6dccebe9d5dc3ec2d90af209e
Author: Volker Lendecke <vl at samba.org>
Date: Tue Apr 14 14:56:35 2009 +0200
Rename notify_context->db to db_recursive
Signed-off-by: Michael Adam <obnox at samba.org>
commit fd0fecc5cc4cf02a040dff1bca4361bf8789c937
Author: Christian Ambach <christian.ambach at de.ibm.com>
Date: Thu Jul 9 14:45:23 2009 +0200
reject ACLs with DESC_DACL_PROTECTED on GPFS
as GPFS does not support the ACE4_FLAG_NO_PROPAGATE NFSv4 flag (which would be the mapping for the DESC_DACL_PROTECTED flag), the status of this flag is currently silently ignored by Samba. That means that if you deselect the "Allow inheritable permissions..." checkbox in Windows' ACL dialog and then apply the ACL, the flag will be back immediately.
To make sure that automatic migration with e.g. robocopy does not lead to ACLs silently (and unintentionally) changed, this patch adds an explicit check for this flag and if set, it will return NT_STATUS_NOT_SUPPORTED so errors are shown up on the Windows side and the Administrator is aware of the ACLs not being settable like intended
Signed-off-by: Christian Ambach <christian.ambach at de.ibm.com>
commit 4fdef5191003e4690ce1a46da6254f28cace0977
Author: Christian Ambach <christian.ambach at de.ibm.com>
Date: Tue Jul 21 13:56:17 2009 +0200
do not log chdir with level 0 if reason is access denied
this changes the level of logs caused by users trying to access shares
or subdirectories for which they do not have access to in the ACL
this can fill up the samba log even with log level 0 and is more an
expected kind of logs that IMHO should not be logged with such a high
level.
All other errors while chdir() will still be logged with level 0
Signed-off-by: Christian Ambach <christian.ambach at de.ibm.com>
Signed-off-by: Michael Adam <obnox at samba.org>
commit eaca63c64547bc60c088ef7e98868210609f3948
Author: Volker Lendecke <vl at samba.org>
Date: Tue Jul 14 18:31:28 2009 +0200
Consolidate gencache also every 100 writes in a single process
commit 608155908e5fbe009d67ad39c050e6746274cd01
Author: Volker Lendecke <vl at samba.org>
Date: Tue Jul 14 11:33:04 2009 +0200
Consolidate string and data_blob routines in gencache
commit 6534e3b3fce700f4b82088aed93cdf2ea6faf867
Author: Volker Lendecke <vl at samba.org>
Date: Mon Jul 13 17:04:29 2009 +0200
Make gencache more stable
This provides a compromise between stability and performance: gencache is a
persistent database these days that for performance reasons can not use tdb
transactions for all writes. This patch splits up gencache into gencache.tdb
and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes
to it don't use transactions. By default every 5 minutes and when a program
exits, all entries from _notrans.tdb are transferred to gencache.tdb in one
transaction.
commit d8d383f192319f07069b858f146002eb93cd4406
Author: Volker Lendecke <vl at samba.org>
Date: Mon Jul 13 17:03:52 2009 +0200
Add tdb_data_cmp
commit 2c57168db1ea052523df0a0dddd3396d2ede5694
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jul 10 12:24:56 2009 +0200
Remove gencache_init/shutdown
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've
been very lazy calling gencache_shutdown, so this seems not really required.
commit 92c7f8e97d54547d79eeb30853bf00fa32cf9a3f
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jul 10 12:12:30 2009 +0200
Fix some nonempty blank lines
commit 6593b42a1455398111373d0dc075d7dc55f813d9
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jul 10 12:03:35 2009 +0200
Remove gencache_[un]lock_key
commit 0c2a41ba550b5f3f3e632432b900552a7ded45d7
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jul 10 11:00:24 2009 +0200
TDB_CONTEXT -> "struct tdb_context"
commit 832f126f147eb319f9b63d86d09df1ed9dd89de4
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jul 10 10:54:33 2009 +0200
Replace ASSERTs in gencache with "return false"
It's a bit strong to panic here I think.
commit e22cafafe2d22d83b614f95ad48725779a9c80b1
Author: Christian Ambach <christian.ambach at de.ibm.com>
Date: Sun Jul 5 16:03:15 2009 +0200
do not merge ACEs with different SMB_ACE4_INHERIT_ONLY_ACE flag, this leads to wrong inheritance flags in the ACL e.g. (on GPFS) user:10000036:rwxc:allow (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (X)READ_NAMED (X)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED
user:10000036:rwxc:allow:FileInherit:DirInherit:InheritOnly
(X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (X)READ_NAMED
(X)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED
group:10000005:rwxc:allow
(X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (X)READ_NAMED
(X)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED
group:10000005:rwxc:allow:FileInherit:DirInherit:InheritOnly
(X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (X)READ_NAMED
(X)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED
would be merged to
user:10000036:rwxc:allow:FileInherit:DirInherit:InheritOnly
(X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (X)READ_NAMED
(X)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED
group:10000005:rwxc:allow:FileInherit:DirInherit:InheritOnly
(X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (X)READ_NAMED
(X)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (X)WRITE_NAMED
so the explicit right for the user on the parent directory will be gone (the InheritOnly flag only accounts to subdirectories)
thus leaving the user without access to the directory itself
Signed-off-by: Christian Ambach <christian.ambach at de.ibm.com>
(cherry picked from commit 5e7da42f6ea768a1e2eeeb15b8b2c41cdfcac94f)
Signed-off-by: Michael Adam <obnox at samba.org>
commit ae0d1857643228ae1df9169fab0025228296be6f
Author: Michael Adam <obnox at samba.org>
Date: Mon Jul 6 13:27:27 2009 +0200
v3-4-ctdb: Bump the ctdb verdor patch level to 2
Michael
commit abdaa324cb893caacda7a13064e9587443366e22
Author: Michael Adam <obnox at samba.org>
Date: Wed Jul 1 11:06:34 2009 +0200
packaging(RHEL-CTDB): disable the merged build.
Michael
commit 5c4371acbf7a19761ac64d9a861bfc79789346fa
Author: Michael Adam <obnox at samba.org>
Date: Fri Mar 20 00:47:45 2009 +0100
packaging(RHEL-CTDB): also pack libwbcient in winbind-32bit package
Michael
Signed-off-by: Michael Adam <obnox at samba.org>
commit 525281bd4d9687ba7001b7bdcb4c950dedc563ca
Author: Michael Adam <obnox at samba.org>
Date: Fri Mar 20 00:30:35 2009 +0100
packaging(RHEL-CTDB): add new pam_winbind.mo to the common package
Michael
Signed-off-by: Michael Adam <obnox at samba.org>
commit 3222fe7d256e87eace4876a4546b80fc8e6bf03a
Author: Michael Adam <obnox at samba.org>
Date: Fri Mar 20 00:28:36 2009 +0100
packaging(RHEL-CTDB): add new binary sharesec to the client package.
Michael
Signed-off-by: Michael Adam <obnox at samba.org>
commit c19f23db1bd876dc0f13118749544322fdeaa94a
Author: Michael Adam <obnox at samba.org>
Date: Fri Mar 20 00:26:11 2009 +0100
packaging(RHEL-CTDB): add new binary ldbrename to the common rpm
Michael
Signed-off-by: Michael Adam <obnox at samba.org>
commit 8c3e2b77de02f93bee331ad91277d745a8d57ca3
Author: Michael Adam <obnox at samba.org>
Date: Mon Jun 29 17:07:14 2009 +0200
packaging(RHEL-CTDB): fix location of nsswitch/ directory for install
This has been moved to the top level directory in 3.4.
Michael
commit d40e3ff5776ed9f7464bd344dbaf76553171dbf4
Author: Michael Adam <obnox at samba.org>
Date: Mon Jun 29 17:05:00 2009 +0200
packaging(RHEL-CTDB): don't pass CFLAGS to make.
This breaks the build since 3.3 since it overwrites the CFLAGS
set by configure.
Michael
commit d63e5f9cc51c03780918fe9a7af0488eb54e305a
Author: Michael Adam <obnox at samba.org>
Date: Mon Jun 29 17:03:09 2009 +0200
packaging(RHEL-CTDB): don't "make proto" any more.
This has become unnecessary in 3.3
Michael
commit f5d33dacb7202e62e3960a160ca362004819c394
Author: Michael Adam <obnox at samba.org>
Date: Mon Jun 29 16:26:42 2009 +0200
s3:fix build of old linux quota system and other unixes' quota implementation
By fixing the use of struct stat_ex.
Michael
commit 1828f2e412dd3ac8812e7b27dce55e997d107942
Author: Michael Adam <obnox at samba.org>
Date: Mon Jun 29 16:11:13 2009 +0200
s3:lib/sysquotas: fix usage of SMB_STRUCT_STAT (struct stat_ex).
This fixes the build with quotas / configure time detection
of sys_quota interface.
Michael
commit 094798820f63794c6dbda89c51f09c642746b92f
Author: Michael Adam <obnox at samba.org>
Date: Mon Jun 29 13:19:48 2009 +0200
s3:nfsv4_acl.c: fix build with struct stat_ex.
Michael
commit 23986f249460f4dfa96fe25c2830760424cce4f4
Author: Michael Adam <obnox at samba.org>
Date: Tue Jun 23 23:09:09 2009 +0200
packaging(RHEL-CTDB):makerpms.sh: replace source/ by source3/
Michael
commit 5229e51b665e2e0f928f37a3c3035793308fac1b
Author: Michael Adam <obnox at samba.org>
Date: Tue Jun 23 23:06:40 2009 +0200
packaging(RHEL-CTDB):makespec.sh: fix detection of version
Michael
commit 91e024754707ab30151cfcd539ace2eef9588ffd
Author: Michael Adam <obnox at samba.org>
Date: Tue Jun 23 22:41:51 2009 +0200
packaging(RHEL-CTDB): makeversion.sh: v3-4-test uses source3 instead of source
Michael
commit 682382d453aa6c9ee7a47bc9e855c85fb75da161
Author: Michael Adam <obnox at samba.org>
Date: Tue Jun 23 16:41:38 2009 +0200
adapt VERSION to be 3.4.0rc1-ctdb-1
following the versioning scheme of the v3-2-ctdb branch
Michael
commit fa2223c353a44ebffe92e7c84f26a601e3bc171f
Author: Michael Adam <obnox at samba.org>
Date: Wed Jan 21 09:49:12 2009 +0100
packaging(RHEL-CTDB): makerpms.sh: build winbind-32bit libs in the 64bit build
Michael
(cherry picked from commit a9a506b6640986548e2ae8540b7ae93960d6ece5)
commit 6f8db1615c562624dca991d17b192ba5ecf232ec
Author: Michael Adam <obnox at samba.org>
Date: Tue Jan 20 19:47:28 2009 +0100
packaging(RHEL-CTDB): Build winbind-32bit package in the 64bit build
Michael
(cherry picked from commit f5cd88a25f360e6609dc5abe24247fab78af6854)
commit 97f9bdba7da6cc7ebfc42411575ca82996486c66
Author: Michael Adam <obnox at samba.org>
Date: Wed Jan 21 11:03:34 2009 +0100
packaging(RHEL-CTDB): extend makespec.sh to extract VENDOR_PATCH from version.h
Michael
(cherry picked from commit fc122aa276bce379b492e5bdf52ab3e03bc3737f)
commit 77786c8a7e613bb72196e06afa14c4435443df12
Author: Michael Adam <obnox at samba.org>
Date: Wed Jan 21 10:24:31 2009 +0100
packaging(RHEL-CTDB): The former release number has basically moved into VERSION
Michael
commit 3737397bd9d804a5528abcf50e8dbda7e71636c8
Author: Volker Lendecke <vl at samba.org>
Date: Thu May 14 15:34:42 2009 +0200
Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STAT
This patch introduces
struct stat_ex {
dev_t st_ex_dev;
ino_t st_ex_ino;
mode_t st_ex_mode;
nlink_t st_ex_nlink;
uid_t st_ex_uid;
gid_t st_ex_gid;
dev_t st_ex_rdev;
off_t st_ex_size;
struct timespec st_ex_atime;
struct timespec st_ex_mtime;
struct timespec st_ex_ctime;
struct timespec st_ex_btime; /* birthtime */
blksize_t st_ex_blksize;
blkcnt_t st_ex_blocks;
};
typedef struct stat_ex SMB_STRUCT_STAT;
It is really large because due to the friendly libc headers playing macro
tricks with fields like st_ino, so I renamed them to st_ex_xxx.
Why this change? To support birthtime, we already have quite a few #ifdef's at
places where it does not really belong. With a stat struct that we control, we
can consolidate the nanosecond timestamps and the birthtime deep in the VFS
stat calls.
At this moment it is triggered by a request to support the birthtime field for
GPFS. GPFS does not extend the system level struct stat, but instead has a
separate call that gets us the additional information beyond posix. Without
being able to do that within the VFS stat calls, that support would have to be
scattered around the main smbd code.
It will very likely break all the onefs modules, but I think the changes will
be reasonably easy to do.
commit 6fdb24f2c37de25ce9925feb9092066e145153b4
Author: Michael Adam <obnox at samba.org>
Date: Wed Jan 28 13:34:34 2009 +0100
vfs_gpfs_prefetch: correctly return -1 on error condition in smbd_gpfs_fcntl()
Michael
commit 5f43f87bec271d8bf4fb6c56c7965e9be6bea35a
Author: Volker Lendecke <vl at samba.org>
Date: Mon Apr 28 11:44:26 2008 +0200
Add a gpfs_prefetch module
This can not go upstream yet because it uses the non-GPL libgpfs. So it will
not be compiled by default and will not be included in the SOFS RPMs. But upon
Sven's request, we include it in the git tree and the source RPMs, so that it
can be built for in-house tests.
commit ec6aed259c3fcd4c89c214fd5dca193ae6837be8
Author: Volker Lendecke <vl at samba.org>
Date: Fri May 29 00:20:10 2009 +0200
Support getting gpfs birthtime
commit f90b05bd215bca9adb69c2d110b23765756876a5
Author: Mathias Dietz <mdietz at de.ibm.com>
Date: Wed May 27 12:03:12 2009 +0200
Store winattrs in GPFS
1. Store win attributes in gpfs instead of posix bits.
2. use of path based winattr calls of gpfs.
Signed-off-by: Mathias Dietz <mdietz at de.ibm.com>
commit e2c74cea1a03aad5db62e3f331704998a339d848
Author: Volker Lendecke <vl at samba.org>
Date: Mon Dec 15 00:16:56 2008 +0100
Add the "net groupfilter" command
This is the start of a bad hack for even worse systems: Many Unix systems still
have the NGROUPS problem: A user can not be member of more than a very limited
number of groups. Solaris for example limits this to 16 by default. Many
Windows environments have a *LOT* more groups per user, some even go to
hundreds. Whether that is efficient is debatable, but it's there.
This patch implements the
"net groupfilter"
command with the "addsid", "delsid" and "list" subcommands. If any SIDs are
present according to "net groupfilter list" (they are stored in secrets.tdb),
then only the SIDs in that list are converted to GIDs for a user at login time.
This gives the Administrator the possibility to define a set of groups that are
used on the Unix box, making sure that no user is in more than NGROUPS of those
at a time.
This patch is incomplete in the sense that winbind is not aware of this, only
smbd. So it is kind of an emergency hack for smbd-only machines.
Volker
Signed-off-by: Michael Adam <obnox at samba.org>
commit f3fff00aa66d2f45185216ae4d5c0f90fc9bd6ee
Author: Andrew Tridgell <tridge at samba.org>
Date: Mon Apr 21 18:41:32 2008 +0200
apply patch from v3-0-ctdb to special case root in libnss_winbind
This is needed to ensure the administrator can login to a node even
when ctdbd and winbindd are stuck
commit 8e4f1b5e8af7756f58331c93fd63e62d51a55f09
Author: Michael Adam <obnox at samba.org>
Date: Tue Jun 16 16:03:41 2009 +0200
add README.v3-4-ctdb
Michael
commit 5a8466733eaa59362b64eaae2a35fa739aec854e
Author: Karolin Seeger <kseeger at samba.org>
Date: Wed Apr 8 19:28:52 2009 +0200
VERSION: Set version to 3.4.0pre1.
Karolin
-----------------------------------------------------------------------
--
SAMBA-CTDB repository
More information about the samba-cvs
mailing list