1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

29788 Commits

Author SHA1 Message Date
Andrew Tridgell
9bf211db6d samba3 can't handle NOREPLY yet
(This used to be commit 21729256a550509c3c038efa5acdd6ac39027dce)
2008-08-13 11:54:08 +02:00
Andrew Tridgell
b3f4b7768f cleanup debugging and fix handling of empty transaction
(This used to be commit 2e85cbe88b3d1674b915f62e02be7d005fddaa39)
2008-08-13 11:54:08 +02:00
Andrew Tridgell
0f41961e4f first cut at adding full transactions for ctdb to samba3
(This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
2008-08-13 11:54:08 +02:00
Andrew Tridgell
9c79d1c23e got rid of the redundent cache database
(This used to be commit 126f4ac8e85458ee4693b89a184b99420f1b6bee)
2008-08-13 11:54:08 +02:00
Michael Adam
4d821dd4fd packaging(RHEL-CTDB): we are now based on 3.2.1
Michael
(This used to be commit 87e0688a261590d45d42f17e4cdce329ebe4cd8f)
2008-08-13 11:54:08 +02:00
Michael Adam
620d873183 idmap tdb2: fix inconsistent mappings by checking for race and retrying to fetch mapping.
Michael
(This used to be commit cb4c74c9c206e5a445ca636fa6562ce721ea5839)
2008-08-13 11:54:08 +02:00
Michael Adam
286974e35a dbwrap ctdb: fix a DEBUG message.
Michael
(This used to be commit d776d8df262e1753fb428450140df94e63035af5)
2008-08-13 11:54:08 +02:00
Michael Adam
134ea91278 idmap tdb2: fix broken logic in tdb2_delete_bystring().
1. use the return value that idmap_tdb2_open_perm_db() gives us
2. don't delete frep the local db if deleting from the perm db failed.
3. fix wrong interpretation of return value of the local delete

Michael
(This used to be commit 147573d7f6faab0ad90258b6a28c4b9575ccb6ea)
2008-08-13 11:54:07 +02:00
Michael Adam
6afa8e573e idmap tdb2: fix broken logic in tdb2_store_bystring().
1. use the return value that idmap_tdb2_open_perm_db() gives us
2. don't write to the local db if writing to the perm db failed.
3. fix wrong interpretation of return value of the local store

Michael
(This used to be commit be8c6b4f2f40014313899b5cbc1da9d390d94fee)
2008-08-13 11:54:07 +02:00
Michael Adam
ebaf208fc3 dbwrap ctdb: don't retry when tdb_store failed in db_ctdb_persistent_store().
Only retry when ctdbd_persisten_update() failed.

Michael
(This used to be commit ff413a4614c8b272a34b2a9e56a329a8e8749a34)
2008-08-13 11:54:07 +02:00
Michael Adam
b45305b5d8 dbwrap ctdb: add a partial mapping from tdb_error to NTSTATUS and use it for store.
Michael
(This used to be commit eaf76c751f9bde2843174b400c109304831df83e)
2008-08-13 11:54:07 +02:00
Michael Adam
8ac9cd8a32 packaging(RHEL-CTDB): Bump release number to ctdb.41 for the next RPM.
Michael
(This used to be commit 5258907818f8c1e338ab2c8fb4e8d83c6142a24e)
2008-08-13 11:54:07 +02:00
Michael Adam
873e74705f dbwrap ctdb: add db_ctdb_delete_persistent() and use it for persistent DBs
as delete_rec operation from fetch_locked()

Michael
(This used to be commit f4aab595a0219305fbedf8890e787b690660a55a)
2008-08-13 11:54:07 +02:00
Michael Adam
dd7ac4f38d dbwrap ctdb: call db_ctdb_store() in db_ctdb_delete().
to reduce code duplication.

Michael
(This used to be commit 09a197e756459877cab7b4d09f534c6a41cfdd71)
2008-08-13 11:54:07 +02:00
Michael Adam
5dcf20961e dbwrap ctdb: add a retry loop to the persistent store operation.
This is because ctdbd can fail in performing the persistent_store
due to race conditions, and this does not mean it can't succeed
the next time.

To not loop infinitely, this makes use of a new parametric option:
"dbwrap ctdb:max store retries" (integer) which defaults to 5
and sets the upper limit for the number or repeats of the
fetch/store cycle.

Michael
(This used to be commit 2bcc9e6ecef876030e552a607d92597f60203db2)
2008-08-13 11:54:06 +02:00
Michael Adam
ed66929647 dbwrap ctdb: release the lock before calling ctdbd_persistent_store()
in the persistent db_ctdb_store operation.

This is to prevent deadlocks in db_ctdb_persistent_store().

There is a tradeoff: Usually, the record is still locked
after db->store operation. This lock is usually released
via the talloc destructor with the TALLOC_FREE to
the record. So we have two choices:

- Either re-lock the record after the call to persistent_store
  or cancel_persistent update and this way not changing any
  assumptions callers may have about the state, but possibly
  introducing new race conditions.

- Or don't lock the record again but just remove the
  talloc_destructor. This is less racy but assumes that
  the lock is always released via TALLOC_FREE of the record.

I choose the first variant for now since it seems less racy.
We can't guarantee that we succeed in getting the lock
anyways. The only real danger here is that a caller
performs multiple store operations after a fetch_locked()
which is currently not the case.

Michael
(This used to be commit d004c9a7281d2577c3ba2012c8f790cc198ea700)
2008-08-13 11:54:06 +02:00
Michael Adam
fd070dc9af dbwrap ctdb: remove erroneously duplicated comment.
Michael
(This used to be commit c939c55e5182258092faceefa58a7f328f18619e)
2008-08-13 11:54:06 +02:00
Michael Adam
f49a712c15 packaging(RHEL-CTDB): Bump release number to ctdb.40 for the next RPM.
Michael
(This used to be commit b822bba9b9ae327bc6cee3f412f7e22ce28c1388)
2008-08-13 11:54:06 +02:00
Michael Adam
c9700dc87f packaging(RHEL-CTDB): Bump release number to ctdb.39 for the next RPM.
Michael
(This used to be commit 7e73792c738447049b8662617da340a73fae9bf0)
2008-08-13 11:54:06 +02:00
Ronnie Sahlberg
fb97047a84 Use transaction start/cancel for persistent writes to avoid leaving the database in an inconsistent state if we crash during the operation
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
(This used to be commit 09329f1f9114af44fc4e5e4f29a7315912313125)
2008-08-13 11:54:06 +02:00
Michael Adam
3cdc00544a packaging(RHEL-CTDB): bump Release number to ctdb.37 for next rpm.
Michael
(This used to be commit bd2158fb5f5d5c0c410fe2853f61776787e1461f)
2008-08-13 11:54:06 +02:00
Michael Adam
73f66d6243 packaging(RHEL-CTDB): Bump release number to ctdb.37 for the next RPM.
Michael
(This used to be commit e63a1a396c5cee837aed8a54b5c5ea3b2116d755)
2008-08-13 11:54:05 +02:00
Michael Adam
02784bb102 packaging(RHEL-CTDB): bump Release number to ctdb.36 for next rpm.
Michael
(This used to be commit d795c2d5dc860fbfa668160054be084fe23aa44a)
2008-08-13 11:54:05 +02:00
Michael Adam
6c506eebba packaging(RHEL-CTDB): Bump release number to ctdb.35 for the next RPM.
Michael
(This used to be commit 3323456e208742e160b9cabb79dc68bfbe8b1970)
2008-08-13 11:54:05 +02:00
Volker Lendecke
b0935e5663 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.
(This used to be commit fc9b30bed2d774dca6660b497cb50f982b23b885)
2008-08-13 11:54:05 +02:00
Michael Adam
f8dec663cd packaging(RHEL-CTDB): bump Release number to ctdb.34 for the next RPM.
Michael
(This used to be commit 7f3787a79a9949e7e80c9c5e16ec504ad1c4bdb7)
2008-08-13 11:54:05 +02:00
Michael Adam
d5d350effc packaging(RHEL-CTDB): update the build instructions in the README.
Michael
(This used to be commit f7706c6437d6500a477cb704cb916f16fdfa1395)
2008-08-13 11:54:05 +02:00
Michael Adam
59593bfeeb packaging(RHEL-CTDB): bump Release to ctdb.33 for the next build
Michael
(This used to be commit 1fee80b8a643c22d356d0ca8860d5fc9580c8918)
2008-08-13 11:54:05 +02:00
Michael Adam
4f79a8e77a packaging(RHEL-CTDB): remove the libnss_wins modules to reduce deps.
Michael
(This used to be commit 7c3e4a324248d61504c4c77a63d4d31e587802af)
2008-08-13 11:54:04 +02:00
Volker Lendecke
e21c5189ec bump version number to 32
(This used to be commit 19becb776148b7930a0abaec8038fee1158a66c4)
2008-08-13 11:54:04 +02:00
Volker Lendecke
45c1e95c72 Correctly return NULL from messaging_ctdbd_connection if messaging_init failed
(This used to be commit 549db133df6782bcca7d033e8573e47716877cbd)
2008-08-13 11:54:04 +02:00
Volker Lendecke
f72e28e24c Exit smbstatus cleanly if messaging_init fails
(This used to be commit 5fd51833a31b326d83ac2f76d06560920547f657)
2008-08-13 11:54:04 +02:00
Volker Lendecke
034a97bc9c Package 32-bit versions of libtalloc into the winbind rpm
(This used to be commit e52e2f7f1a09fff8ec37174a9dc98dc9b440ef87)
2008-08-13 11:54:04 +02:00
Volker Lendecke
37ca4b7ceb Fix README: DOCS_DIR is replaced by DOCS_TARBALL
(This used to be commit 3d24c5b4602140470c40f002d206212e388ae59b)
2008-08-13 11:54:04 +02:00
Volker Lendecke
78440cc272 Bump up version number
(This used to be commit ace315c2ffc4e81c87ba1d30c28578719cb1692b)
2008-08-13 11:54:04 +02:00
Michael Adam
d8156b967e packaging(RHEL-CTDB): use /usr/%{_libarch} instead of %{_libdir}
To fix creation of 32bit packges on x86_64

Michael
(This used to be commit ae2a353286a1a02936fb80edd6f899b1941403af)
2008-08-13 11:54:03 +02:00
Michael Adam
ac1b8c4e07 packaging(RHEL-CTDB): remove duplicate block from spec file.
Michael
(This used to be commit f978df86f9af480de26a6cf67c4f8e60d1e27139)
2008-08-13 11:54:03 +02:00
Michael Adam
14c0f896b3 packaging(RHEL-CTDB): fix placement and link direction of new shared libs
libwbclient, libtalloc, libtdb, and libnetapi are now installed
into /usr/lib{,64} by their SONAME. The symlink is made from
the .so files to point to the SONAME files (e.g., libtdb.so.1).

Michael
(This used to be commit d18287b6284597878bc3683f16f001b949857e54)
2008-08-13 11:54:03 +02:00
Michael Adam
e3d29de044 packaging(RHEL-CTDB): bump rpm release to the next version ctdb.29
Michael
(This used to be commit 0d64606da69edba20f545789e526a71d01ca40b0)
2008-08-13 11:54:03 +02:00
Michael Adam
20784e9c5c packaging(RHEL-CTDB): add "service winbind condrestart" to "%post common"
Michael
(This used to be commit c0ecb63d9e7b11bb5c31bdf95605d68c02206220)
2008-08-13 11:54:03 +02:00
Michael Adam
47dbecf35a packaging(RHEL-CTDB): use "/sbin/service smb" instead of "%{initdir}/smb"
Michael
(This used to be commit 58085063c46f3c55c8aebc83bb79a2dd19f73622)
2008-08-13 11:54:03 +02:00
Michael Adam
ecfb2274ef packaging(RHEL-CTDB): ignore errors from init scripts in pre/post scripts.
Michael
(This used to be commit 1cd7201e5387ca11e9b735d37b806cb14d4a8dd3)
2008-08-13 11:54:03 +02:00
Michael Adam
f1e91b4528 packaging(RHEL-CTDB): in %preun, first stop the service then deactivate
Michael
(This used to be commit b3e552d795caf6e4ab811368fda4a8a2f2d493a0)
2008-08-13 11:54:02 +02:00
Michael Adam
0da2b0bf86 packaging(RHEL-CTDB): use condrestart instead of restart in %post script
Michael
(This used to be commit 2ccd9ef741c88772e4b7409506258e85b252c74f)
2008-08-13 11:54:02 +02:00
Michael Adam
d12eb6e5f3 packaging(RHEL-CTDB): move service smb restart from %postun to %post
What would be the use of restarting a service that has just
been uninstalled...

Michael
(This used to be commit 98116075589abb7e0c9dc391f6d1bf3452025a1d)
2008-08-13 11:54:02 +02:00
Michael Adam
f66a474544 packaging(RHEL-CTDB): move "chkconfig --del winbind" to "%preun common"
remains of winbind are being removed from the main package.
also stop the winbind service in the "%preun common" script.

Michael
(This used to be commit 758f1de7750471815a284e9fad927112b59dc085)
2008-08-13 11:54:02 +02:00
Michael Adam
254e118d55 packaging(RHEL-CTDB): remove winbind init script and its linke from main pkg
Winbind along with its libraries and init script is packaged in the
samba-common rpm.

Michael
(This used to be commit 7ebc1ea13fd975126bfc43af48a4384fc9c620e2)
2008-08-13 11:54:02 +02:00
Michael Adam
78c034eb59 packaging: bump the rhel-ctdb rpm releas number to ctbd.28
Michael
(This used to be commit 185e24249d3dea1755558a154aa819db3bb1a605)
2008-08-13 11:54:02 +02:00
Volker Lendecke
c6ecbd92ab Do not call testparm in /etc/init.d/smb
For SOFS, we do know that we have netbios disabled, and testparm in the ctdb
shutdown event locks up due to a locked registry.tdb
(This used to be commit 285d55d2a273f18ec9b84011c74a8099cba193c2)
2008-08-13 11:54:02 +02:00
Andrew Tridgell
d609ccbab5 keep compatibility with v3-0-ctdb name for fileid:mapping option
(This used to be commit 2856d2e4a43fbcc6c8f8ac7b1613828170362861)
2008-08-13 11:54:01 +02:00