Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (113)
6f184288
libsmbclient: Allow server (NetApp) to return STATUS_INVALID_PARAMETER from an echo.
Nov 20, 2017
7b28a97a
s3: libsmb: smbc_statvfs is missing the supporting SMB2 calls.
Nov 20, 2017
641af304
Merge tag 'samba-4.7.3' into v4-7-test
Nov 22, 2017
cb6ec4d5
VERSION: Bump version up to 4.7.4...
Nov 22, 2017
ea297d6b
s3: smbclient: Implement "volume" command over SMB2.
Nov 22, 2017
58e728ac
s3: smbclient: tests: Test "volume" command over SMB1 and SMB2+.
Nov 22, 2017
f6a9d348
winbind: Replace winbind_event_context with server_event_context
Nov 22, 2017
3aaa48c8
winbind: Remove winbind_event_context
Nov 22, 2017
bbe5614e
winbind: winbind_messaging_context -> server_messaging_context
Nov 22, 2017
f398a79d
winbind: Remove winbind_messaging_context
Nov 22, 2017
e4cce452
ctdb-daemon: Allocate deferred calls off calling context
Nov 22, 2017
710c2ade
ctdb-common: Call missing tevent_wakeup_recv() in sock_daemon
Nov 22, 2017
3ef93aba
vfs_glusterfs: include glusterfs/api/glfs.h without relying on -I options
Nov 24, 2017
72e69f59
s3:selftest: add samba3.blackbox.net_rpc_oldjoin test
Nov 28, 2017
fe6da673
libnet_join: fix "net rpc oldjoin"
Nov 28, 2017
e90e3d7e
systemd: Start processes in forground and without a process group
Nov 29, 2017
45911b03
dbcheck: Allow removal of one-way links to missing objects
Nov 29, 2017
ed4189f3
selftest: sort dbcheck output to avoid sort order impacting results
Nov 29, 2017
b7c9edb3
dbcheck: Clarify error count bumping in deleted/gone DN handling
Nov 29, 2017
68bf2752
dbcheck: Use the GUID as the DN to fix replPropertyMetaData
Nov 29, 2017
74688a25
selftest: add more dbcheck tests
Nov 29, 2017
505936a9
selftest: Split out dbcheck runs from dangling_multi_valued test
Nov 29, 2017
df23dc81
selftest: Split out creation of complex (often invalid) links
Nov 29, 2017
ee05047c
selftest: Additional check for a backlink pointing at a deleted object
Nov 29, 2017
67270b3f
s4:schema_samba4: mark DSDB_CONTROL_INVALID_NOT_IMPLEMENTED 1.3.6.1.4.1.7165.4.3.32 as allocated
Nov 29, 2017
f0920ea4
s4:dsdb: allocate DSDB_CONTROL_DBCHECK_FIX_DUPLICATE_LINKS oid
Nov 29, 2017
aafcb738
dsdb:repl_meta_data: implement DSDB_CONTROL_DBCHECK_FIX_DUPLICATE_LINKS control
Nov 29, 2017
27cdadf1
dsdb:extended_dn_store: implement DSDB_CONTROL_DBCHECK_FIX_DUPLICATE_LINKS control
Nov 29, 2017
7b67da4d
dbcheck: remove indentation level
Nov 29, 2017
c1860d16
dbcheck: only calculate linked attribute helper variables once in check_dn()
Nov 29, 2017
ece46f72
dbcheck: detect and fix duplicate links
Nov 29, 2017
09a311ca
selftest: add dbcheck tests for duplicate links
Nov 29, 2017
fe3ae81c
selftest: Add more corruption cases for runtime and dbcheck
Nov 29, 2017
f2c47544
repl_meta_data: Allow delete of an object with dangling backlinks
Nov 29, 2017
00dfe4cf
repl_meta_data: Fix removing of backlink on deleted objects
Nov 29, 2017
e41925e5
s4/smbd: set the process group.
Nov 30, 2017
6182708d
s4:samba: Do not segfault if we run into issues
Nov 30, 2017
39922b5a
s4:samba: Allow samba daemon to run in foreground
Nov 30, 2017
b21d9f02
Fix typo in the "wide links" description for the getwd cache.
Dec 05, 2017
e36b1ced
Add vfs_zfsacl manpage to the list of manpages if we have this module enabled.
Dec 05, 2017
7dc2782a
s3/loadparm: allocate a fresh sDefault object per lp_ctx
Dec 05, 2017
cecbc43a
s3/loadparm: ensure default service options are not changed
Dec 05, 2017
9990e6e4
s3/loadparm: don't mark IPC$ as autoloaded
Dec 05, 2017
590a4cff
selftest: reorder arguments for fruit tests
Dec 05, 2017
1a2f5648
selftest: add localdir option to fruit subtests
Dec 05, 2017
e24e345d
s4/torture: rework stream names tests usage of local xattr call
Dec 05, 2017
b9f7dd4a
s4/torture: use torture_assert_goto in a vfs.fruit test
Dec 05, 2017
0b7e1705
selftest: run AppleDouble sidecar-file conversion test runs against all fruit shares
Dec 05, 2017
1143b2fd
s4/torture: let write_stream() deal with stream=NULL
Dec 05, 2017
8946fc80
selftest: add "fruit:veto_appledouble = no" to fruit shares
Dec 05, 2017
3d907519
s4/torture: fruit: remove use of localdir from test_adouble_conversion test
Dec 05, 2017
2d3e21f5
s4/torture: fruit: in test_adouble_conversion() also check stream list and AFPINFO_STREAM
Dec 05, 2017
3f946806
vfs_fruit: add AfpInfo prototypes
Dec 05, 2017
73d3e642
vfs_fruit: proper VFS-stackable conversion of FinderInfo
Dec 05, 2017
aba1e919
s3:libads: net ads keytab list fails with "Key table name malformed"
Dec 05, 2017
0fcdf5db
testprogs: Test net ads keytab list
Dec 05, 2017
ac32a770
s3: libsmb: Fix valgrind read-after-free error in cli_smb2_close_fnum_recv().
Dec 05, 2017
8a313c8d
winbindd: let normalize_name_map() call find_domain_from_name_noinit()
Dec 05, 2017
5bb2b9c9
vfs_zfsacl: fix compilation error
Dec 07, 2017
0fdc82e1
ctdb-takeover: Refactor code to send tickle lists for all public IPs
Dec 13, 2017
6f7215fd
ctdb-takeover: Send tcp tickles immediately on STARTUP control
Dec 13, 2017
97a9e81d
ctdb-daemon: Send STARTUP control after startup event
Dec 13, 2017
c43c8888
pthreadpool: Move creating of thread to new function
Dec 13, 2017
fcc86164
pthreadpool: Undo put_job when returning error
Dec 13, 2017
a6777171
wscript: Add check for --wrap linker flag
Dec 13, 2017
086b4538
pthreadpool: Add test for pthread_create failure
Dec 13, 2017
61140f4b
pthreadpool: Fix deadlock
Dec 13, 2017
3f1f2a82
s3: client: Rename <oldname> to <link_target> in cmd_symlink() and cli_posix_symlink().
Dec 13, 2017
2d1d00bd
s3: libsmb: Fix reversing of oldname/newname paths when creating a reparse...
Dec 13, 2017
364f1c52
third_party: Link th aesni-intel library with -z noexecstack
Dec 14, 2017
25300536
third_party: Fix a typo in the option name
Dec 14, 2017
b418ab36
pthreadpool: Fix starvation after fork
Dec 14, 2017
dce01aca
pthreadpool: Add a test for the race condition fixed in the last commit
Dec 14, 2017
5ffedec1
winbindd: add domain SID to idmap mapping domains
Dec 14, 2017
5724d651
winbindd: pass domain SID to wbint_UnixIDs2Sids
Dec 14, 2017
e92edf0d
winbindd: idmap_rid: don't rely on the static domain list
Dec 14, 2017
40ac0296
winbindd: idmap_rid: error code for failing id-to-sid mapping request
Dec 14, 2017
1eb08445
messaging: Always register the unique id
Dec 15, 2017
edc0c992
s4:samba: Fix default to be running samba as a deamon
Dec 21, 2017
6ddcbfdd
selftest: Do not use dn= filter string
Dec 22, 2017
5f515616
ldb_tdb: Provide struct ltdb_private to index routines
Dec 22, 2017
82764c9f
ldb: Intersect the index from SCOPE_ONELEVEL with the index for the search expression
Dec 22, 2017
2cd83893
ldb: Release 1.2.3
Dec 22, 2017
7d60443c
dns_server: Do the exact match query first, then do the wildcard lookup
Dec 22, 2017
6c5481b9
dns_server: Do not look for a wildcard for @
Dec 22, 2017
7249bc19
dns_server: Use the indexed "name" attribute in wildcard lookup
Dec 22, 2017
3648ab02
g_lock: fix cleanup of stale entries in g_lock_trylock()
Dec 22, 2017
b5e86148
s4:torture: add smb2.session.expire2 test
Dec 22, 2017
2108b109
s3:smbd: return the correct error for cancelled SMB2 notifies on expired sessions
Dec 22, 2017
8be01985
s3:smb2_server: allow logoff, close, unlock, cancel and echo on expired sessions
Dec 22, 2017
237bead2
s4:kdc: only map SDB_ERR_NOT_FOUND_HERE to HDB_ERR_NOT_FOUND_HERE
Dec 22, 2017
437395d0
WHATSNEW: Add release notes for Samba 4.7.4.
Dec 22, 2017
4b1b5b14
VERSION: Disable GIT_SNAPSHOT for the 4.7.4 release.
Dec 22, 2017
6f086e14
d/README.source: ensure required branches exists
Jan 10, 2018
caf526f5
d/README.source: sync all required branches
Jan 10, 2018
53fbb0f8
New upstream version 4.7.4+dfsg
Jan 10, 2018
bac50d02
Update upstream source from tag 'upstream/4.7.4+dfsg'
Jan 10, 2018
fed6df76
Updates patches for
e90e3d7e
Jan 10, 2018
6575817a
Always specify rpath for private libraries
Jan 10, 2018
d636f568
64 bit fix for libsmbclient
Jan 10, 2018
Show whitespace changes
Inline
Side-by-side
VERSION
View file @
70fa2753
...
...
@@ -25,7 +25,7 @@
########################################################
SAMBA_VERSION_MAJOR=4
SAMBA_VERSION_MINOR=7
SAMBA_VERSION_RELEASE=
3
SAMBA_VERSION_RELEASE=
4
########################################################
# If a official release has a serious bug #
...
...
WHATSNEW.txt
View file @
70fa2753
=============================
Release Notes for Samba 4.7.4
December 22, 2017
=============================
This is the latest stable release of the Samba 4.7 release series.
smbclient reparse point symlink parameters reversed
===================================================
A bug in smbclient caused the 'symlink' command to reverse the
meaning of the new name and link target parameters when creating a
reparse point symlink against a Windows server.
This only affects using the smbclient 'symlink' command against
a Windows server, not a Samba server using the UNIX extensions
(the parameter order is correct in that case) so no existing
user scripts that depend on creating symlinks on Samba servers
need to change.
As this is a little used feature the ordering of these parameters
has been reversed to match the parameter ordering of the UNIX
extensions 'symlink' command. This means running 'symlink' against
both Windows and Samba now uses the same paramter ordering in both
cases.
The usage message for this command has also been improved to remove confusion.
Changes since 4.7.3:
--------------------
o Jeremy Allison <jra@samba.org>
* BUG 13140: s3: smbclient: Implement 'volume' command over SMB2.
* BUG 13171: s3: libsmb: Fix valgrind read-after-free error in
cli_smb2_close_fnum_recv().
* BUG 13172: s3: libsmb: Fix reversing of oldname/newname paths when creating
a reparse point symlink on Windows from smbclient.
o Timur I. Bakeyev <timur@iXsystems.com>
* BUG 12934: Build man page for vfs_zfsacl.8 with Samba.
o Andrew Bartlett <abartlet@samba.org>
* BUG 13095: repl_meta_data: Allow delete of an object with dangling
backlinks.
* BUG 13129: s4:samba: Fix default to be running samba as a deamon.
* BUG 13191: Performance regression in DNS server with introduction of
DNS wildcard, ldb: Release 1.2.3
o Ralph Boehme <slow@samba.org>
* BUG 6133: vfs_zfsacl: Fix compilation error.
* BUG 13051: "smb encrypt" setting changes are not fully applied until full
smbd restart.
* BUG 13052: winbindd: Fix idmap_rid dependency on trusted domain list.
* BUG 13155: vfs_fruit: Proper VFS-stackable conversion of FinderInfo.
* BUG 13173: winbindd: Dependency on trusted-domain list in winbindd in
critical auth codepath.
o Andrej Gessel <Andrej.Gessel@janztec.com>
* BUG 13120: repl_meta_data: Fix removing of backlink on deleted objects.
o Amitay Isaacs <amitay@gmail.com>
"* BUG 13153: ctdb: sock_daemon leaks memory.
* BUG 13154: TCP tickles not getting synchronised on CTDB restart.
o Volker Lendecke <vl@samba.org>
* BUG 13150: winbindd: winbind parent and child share a ctdb connection.
* BUG 13170: pthreadpool: Fix deadlock.
* BUG 13179: pthreadpool: Fix starvation after fork.
* BUG 13180: messaging: Always register the unique id.
o Gary Lockyer <gary@catalyst.net.nz>
* 13129: s4/smbd: set the process group.
o Stefan Metzmacher <metze@samba.org>
* BUG 13095: Fix broken linked attribute handling.
* BUG 13132: The KDC on an RWDC doesn't send error replies in some
situations.
* BUG 13149: libnet_join: Fix 'net rpc oldjoin'.
* BUG 13195: g_lock conflict detection broken when processing stale entries.
* BUG 13197: s3:smb2_server: allow logoff, close, unlock, cancel and echo
on expired sessions.
o Noel Power <noel.power@suse.com>
* BUG 13166: s3:libads: net ads keytab list fails with "Key table name
malformed".
o Christof Schmitt <cs@samba.org>
* BUG 13170: Fix crash in pthreadpool thread after failure from pthread_create.
o Andreas Schneider <asn@samba.org>
* BUG 13129: s4:samba: Allow samba daemon to run in foreground.
* BUG 13174: third_party: Link the aesni-intel library with "-z noexecstack".
o Niels de Vos <ndevos@redhat.com>
* BUG 13125: vfs_glusterfs: include glusterfs/api/glfs.h without relying on
"-I" options.
#######################################
Reporting bugs & Development Discussion
#######################################
Please discuss this release on the samba-technical mailing list or by
joining the #samba-technical IRC channel on irc.freenode.net.
If you do report problems then please try to send high quality
feedback. If you don't provide vital information to help us track down
the problem then you will probably be ignored. All bug reports should
be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
database (https://bugzilla.samba.org/).
======================================================================
== Our Code, Our Bugs, Our Responsibility.
== The Samba Team
======================================================================
Release notes for older releases follow:
----------------------------------------
=============================
Release Notes for Samba 4.7.3
November 21, 2017
...
...
@@ -66,8 +190,8 @@ database (https://bugzilla.samba.org/).
======================================================================
Release notes for older releases follow:
----------------------------------------
----------------------------------------------------------------------
=============================
Release Notes for Samba 4.7.2
...
...
ctdb/common/sock_daemon.c
View file @
70fa2753
...
...
@@ -628,6 +628,14 @@ static void sock_daemon_run_started(struct tevent_req *subreq)
struct
sock_daemon_run_state
*
state
=
tevent_req_data
(
req
,
struct
sock_daemon_run_state
);
struct
sock_daemon_context
*
sockd
=
state
->
sockd
;
bool
status
;
status
=
tevent_wakeup_recv
(
subreq
);
TALLOC_FREE
(
subreq
);
if
(
!
status
)
{
tevent_req_error
(
req
,
EIO
);
return
;
}
D_NOTICE
(
"daemon started, pid=%u
\n
"
,
getpid
());
...
...
ctdb/doc/ctdb-etcd.7
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ctdb-etcd
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CTDB\-ETCD" "7" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CTDB\-ETCD" "7" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ctdb-statistics.7
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ctdb-statistics
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CTDB\-STATISTICS" "7" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CTDB\-STATISTICS" "7" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ctdb-tunables.7
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ctdb-tunables
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CTDB\-TUNABLES" "7" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CTDB\-TUNABLES" "7" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ctdb.1
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ctdb
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CTDB" "1" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CTDB" "1" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ctdb.7
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ctdb
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CTDB" "7" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CTDB" "7" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ctdb_diagnostics.1
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ctdb_diagnostics
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CTDB_DIAGNOSTICS" "1" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CTDB_DIAGNOSTICS" "1" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ctdb_mutex_ceph_rados_helper.7
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: Ceph RADOS Mutex
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CEPH RADOS MUTEX" "7" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CEPH RADOS MUTEX" "7" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ctdbd.1
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ctdbd
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CTDBD" "1" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CTDBD" "1" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ctdbd.conf.5
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ctdbd.conf
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CTDBD\&.CONF" "5" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CTDBD\&.CONF" "5" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ctdbd_wrapper.1
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ctdbd_wrapper
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "CTDBD_WRAPPER" "1" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "CTDBD_WRAPPER" "1" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ltdbtool.1
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ltdbtool
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "LTDBTOOL" "1" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "LTDBTOOL" "1" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/onnode.1
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: onnode
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "ONNODE" "1" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "ONNODE" "1" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/doc/ping_pong.1
View file @
70fa2753
...
...
@@ -2,12 +2,12 @@
.\" Title: ping_pong
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 1
1
/2
0
/2017
.\" Date: 1
2
/2
2
/2017
.\" Manual: CTDB - clustered TDB database
.\" Source: ctdb
.\" Language: English
.\"
.TH "PING_PONG" "1" "1
1
/2
0
/2017" "ctdb" "CTDB \- clustered TDB database"
.TH "PING_PONG" "1" "1
2
/2
2
/2017" "ctdb" "CTDB \- clustered TDB database"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
...
...
ctdb/server/ctdb_call.c
View file @
70fa2753
...
...
@@ -1549,6 +1549,7 @@ struct revokechild_deferred_call {
struct
ctdb_req_header
*
hdr
;
deferred_requeue_fn
fn
;
void
*
ctx
;
struct
revokechild_handle
*
rc
;
};
struct
revokechild_handle
{
...
...
@@ -1573,12 +1574,20 @@ static void deferred_call_requeue(struct tevent_context *ev,
while
(
dlist
!=
NULL
)
{
struct
revokechild_deferred_call
*
dcall
=
dlist
;
talloc_set_destructor
(
dcall
,
NULL
);
DLIST_REMOVE
(
dlist
,
dcall
);
dcall
->
fn
(
dcall
->
ctx
,
dcall
->
hdr
);
talloc_free
(
dcall
);
}
}
static
int
deferred_call_destructor
(
struct
revokechild_deferred_call
*
dcall
)
{
struct
revokechild_handle
*
rc
=
dcall
->
rc
;
DLIST_REMOVE
(
rc
->
deferred_call_list
,
dcall
);
return
0
;
}
static
int
revokechild_destructor
(
struct
revokechild_handle
*
rc
)
{
...
...
@@ -1917,7 +1926,7 @@ int ctdb_add_revoke_deferred_call(struct ctdb_context *ctdb, struct ctdb_db_cont
return
-
1
;
}
deferred_call
=
talloc
(
c
tdb_db
,
struct
revokechild_deferred_call
);
deferred_call
=
talloc
(
c
all_context
,
struct
revokechild_deferred_call
);
if
(
deferred_call
==
NULL
)
{
DEBUG
(
DEBUG_ERR
,(
"Failed to allocate deferred call structure for revoking record
\n
"
));
return
-
1
;
...
...
@@ -1927,6 +1936,9 @@ int ctdb_add_revoke_deferred_call(struct ctdb_context *ctdb, struct ctdb_db_cont
deferred_call
->
hdr
=
talloc_steal
(
deferred_call
,
hdr
);
deferred_call
->
fn
=
fn
;
deferred_call
->
ctx
=
call_context
;
deferred_call
->
rc
=
rc
;
talloc_set_destructor
(
deferred_call
,
deferred_call_destructor
);
DLIST_ADD
(
rc
->
deferred_call_list
,
deferred_call
);
...
...
ctdb/server/ctdb_daemon.c
View file @
70fa2753
...
...
@@ -1081,12 +1081,6 @@ static void ctdb_setup_event_callback(struct ctdb_context *ctdb, int status,
}
ctdb_run_notification_script
(
ctdb
,
"setup"
);
/* tell all other nodes we've just started up */
ctdb_daemon_send_control
(
ctdb
,
CTDB_BROADCAST_ALL
,
0
,
CTDB_CONTROL_STARTUP
,
0
,
CTDB_CTRL_FLAG_NOREPLY
,
tdb_null
,
NULL
,
NULL
);
/* Start the recovery daemon */
if
(
ctdb_start_recoverd
(
ctdb
)
!=
0
)
{
DEBUG
(
DEBUG_ALERT
,(
"Failed to start recovery daemon
\n
"
));
...
...
ctdb/server/ctdb_monitor.c
View file @
70fa2753
...
...
@@ -243,6 +243,12 @@ static void ctdb_startup_callback(struct ctdb_context *ctdb, int status, void *p
ctdb
->
monitor
->
monitoring_mode
=
CTDB_MONITORING_ENABLED
;
/* tell all other nodes we've just started up */
ctdb_daemon_send_control
(
ctdb
,
CTDB_BROADCAST_CONNECTED
,
0
,
CTDB_CONTROL_STARTUP
,
0
,
CTDB_CTRL_FLAG_NOREPLY
,
tdb_null
,
NULL
,
NULL
);
tevent_add_timer
(
ctdb
->
ev
,
ctdb
->
monitor
->
monitor_context
,
timeval_current_ofs
(
ctdb
->
monitor
->
next_interval
,
0
),
ctdb_check_health
,
ctdb
);
...
...
ctdb/server/ctdb_takeover.c
View file @
70fa2753
...
...
@@ -1495,24 +1495,23 @@ int32_t ctdb_control_tcp_remove(struct ctdb_context *ctdb, TDB_DATA indata)
}
static
void
ctdb_send_set_tcp_tickles_for_all
(
struct
ctdb_context
*
ctdb
,
bool
force
);
/*
Called when another daemon starts - causes all tickles for all
public addresses we are serving to be sent to the new node on the
next check. This actually causes the next scheduled call to
tdb_update_tcp_tickles() to update all nodes. This is simple and
next check. This actually causes the tickles to be sent to the
other node immediately. In case there is an error, the periodic
timer will send the updates on timer event. This is simple and
doesn't require careful error handling.
*/
int32_t
ctdb_control_startup
(
struct
ctdb_context
*
ctdb
,
uint32_t
pnn
)
{
struct
ctdb_vnn
*
vnn
;
DEBUG
(
DEBUG_INFO
,
(
"Received startup control from node %lu
\n
"
,
(
unsigned
long
)
pnn
));
for
(
vnn
=
ctdb
->
vnn
;
vnn
!=
NULL
;
vnn
=
vnn
->
next
)
{
vnn
->
tcp_update_needed
=
true
;
}
ctdb_send_set_tcp_tickles_for_all
(
ctdb
,
true
);
return
0
;
}
...
...
@@ -1995,43 +1994,53 @@ static int ctdb_send_set_tcp_tickles_for_ip(struct ctdb_context *ctdb,
return
ret
;
}
/*
perform tickle updates if required
*/
static
void
ctdb_update_tcp_tickles
(
struct
tevent_context
*
ev
,
struct
tevent_timer
*
te
,
struct
timeval
t
,
void
*
private_data
)
static
void
ctdb_send_set_tcp_tickles_for_all
(
struct
ctdb_context
*
ctdb
,
bool
force
)
{
struct
ctdb_context
*
ctdb
=
talloc_get_type
(
private_data
,
struct
ctdb_context
);
int
ret
;
struct
ctdb_vnn
*
vnn
;
int
ret
;
for
(
vnn
=
ctdb
->
vnn
;
vnn
;
vnn
=
vnn
->
next
)
{
for
(
vnn
=
ctdb
->
vnn
;
vnn
!=
NULL
;
vnn
=
vnn
->
next
)
{
/* we only send out updates for public addresses that
we have taken over
*/
if
(
ctdb
->
pnn
!=
vnn
->
pnn
)
{
continue
;
}
/* We only send out the updates if we need to */
if
(
!
vnn
->
tcp_update_needed
)
{
if
(
!
force
&&
!
vnn
->
tcp_update_needed
)
{
continue
;
}
ret
=
ctdb_send_set_tcp_tickles_for_ip
(
ctdb
,
&
vnn
->
public_address
,
vnn
->
tcp_array
);
if
(
ret
!=
0
)
{
DEBUG
(
DEBUG_ERR
,(
"Failed to send the tickle update for public address %s
\n
"
,
ctdb_addr_to_str
(
&
vnn
->
public_address
)));
D_ERR
(
"Failed to send the tickle update for ip %s
\n
"
,
ctdb_addr_to_str
(
&
vnn
->
public_address
));
vnn
->
tcp_update_needed
=
true
;
}
else
{
DEBUG
(
DEBUG_INFO
,
(
"Sent tickle update for public address %s
\n
"
,
ctdb_addr_to_str
(
&
vnn
->
public_address
)));
D_INFO
(
"Sent tickle update for ip %s
\n
"
,
ctdb_addr_to_str
(
&
vnn
->
public_address
));
vnn
->
tcp_update_needed
=
false
;
}
}
}
/*
perform tickle updates if required
*/
static
void
ctdb_update_tcp_tickles
(
struct
tevent_context
*
ev
,
struct
tevent_timer
*
te
,
struct
timeval
t
,
void
*
private_data
)
{
struct
ctdb_context
*
ctdb
=
talloc_get_type
(
private_data
,
struct
ctdb_context
);
ctdb_send_set_tcp_tickles_for_all
(
ctdb
,
false
);
tevent_add_timer
(
ctdb
->
ev
,
ctdb
->
tickle_update_context
,
timeval_current_ofs
(
ctdb
->
tunable
.
tickle_update_interval
,
0
),
ctdb_update_tcp_tickles
,
ctdb
);
...
...
Prev
1
2
3
4
5
…
11
Next