<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/ctdb/tools, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>ctdb-tools: Remove some helper variables</title>
<updated>2026-02-25T12:33:39+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2025-10-27T06:36:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=2628f86c6599472d241f0ccdbe0d151fed0e08aa'/>
<id>2628f86c6599472d241f0ccdbe0d151fed0e08aa</id>
<content type='text'>
Remove CTDB_EVENT_HELPER, CTDB_LVS_HELPER, CTDB_NATGW_HELPER.  Use
path_helperdir_append() instead.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove CTDB_EVENT_HELPER, CTDB_LVS_HELPER, CTDB_NATGW_HELPER.  Use
path_helperdir_append() instead.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tools: Fix CID 1681637 - Drop unnecessary if-statements</title>
<updated>2026-02-23T08:43:29+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2026-02-23T03:42:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=950db430a5172104c8ecfd5bea92d31d8ded9154'/>
<id>950db430a5172104c8ecfd5bea92d31d8ded9154</id>
<content type='text'>
The first was found by Coverity:

&gt;&gt;&gt;     CID 1681637:         Incorrect expression  (IDENTICAL_BRANCHES)
&gt;&gt;&gt;     The same code is executed when the condition "ret != 0" is
	true or false, because the code in the if-then branch and
	after the if statement is identical. Should the if statement
	be removed?

The second and third are also obvious.

Sorry, missed these in review.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Signed-off-by: Anoop C S &lt;anoopcs@samba.org&gt;

Autobuild-User(master): Anoop C S &lt;anoopcs@samba.org&gt;
Autobuild-Date(master): Mon Feb 23 08:43:29 UTC 2026 on atb-devel-224
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The first was found by Coverity:

&gt;&gt;&gt;     CID 1681637:         Incorrect expression  (IDENTICAL_BRANCHES)
&gt;&gt;&gt;     The same code is executed when the condition "ret != 0" is
	true or false, because the code in the if-then branch and
	after the if statement is identical. Should the if statement
	be removed?

The second and third are also obvious.

Sorry, missed these in review.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Signed-off-by: Anoop C S &lt;anoopcs@samba.org&gt;

Autobuild-User(master): Anoop C S &lt;anoopcs@samba.org&gt;
Autobuild-Date(master): Mon Feb 23 08:43:29 UTC 2026 on atb-devel-224
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tools: add --json support to 'version' sub-command</title>
<updated>2026-02-20T00:47:32+00:00</updated>
<author>
<name>Shachar Sharon</name>
<email>ssharon@redhat.com</email>
</author>
<published>2026-02-08T11:15:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=0a153977488ea5e60e6a9e1ddc61469f5f3dab8c'/>
<id>0a153977488ea5e60e6a9e1ddc61469f5f3dab8c</id>
<content type='text'>
When building ctdb with json-outpuit support, enable json output when
running 'ctdb version --json'. This may be used as indication to json
support in other sub-commands.

Pair-Programmed-With: John Mulligan &lt;jmulligan@redhat.com&gt;
Signed-off-by: Shachar Sharon &lt;ssharon@redhat.com&gt;
Signed-off-by: John Mulligan &lt;jmulligan@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When building ctdb with json-outpuit support, enable json output when
running 'ctdb version --json'. This may be used as indication to json
support in other sub-commands.

Pair-Programmed-With: John Mulligan &lt;jmulligan@redhat.com&gt;
Signed-off-by: Shachar Sharon &lt;ssharon@redhat.com&gt;
Signed-off-by: John Mulligan &lt;jmulligan@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tools: add a --json option for ctdb status</title>
<updated>2026-02-20T00:47:32+00:00</updated>
<author>
<name>John Mulligan</name>
<email>jmulligan@redhat.com</email>
</author>
<published>2026-02-12T22:47:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=3812798c20ef53bc6ff2dee4c475b1f95eccb077'/>
<id>3812798c20ef53bc6ff2dee4c475b1f95eccb077</id>
<content type='text'>
Add a new --json option that prints JSON as a higher-level machine
parse-able output. The --json option is only supported if the
jansson library is available.

The --json option will ONLY print json.  If the subcommand does not
(yet) support json it will raise an error rather than fall back to
emitting human readable text. This way a json parser is never given
"invalid" input.

Pair-Programmed-With: Shachar Sharon &lt;ssharon@redhat.com&gt;
Signed-off-by: Shachar Sharon &lt;ssharon@redhat.com&gt;
Signed-off-by: John Mulligan &lt;jmulligan@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new --json option that prints JSON as a higher-level machine
parse-able output. The --json option is only supported if the
jansson library is available.

The --json option will ONLY print json.  If the subcommand does not
(yet) support json it will raise an error rather than fall back to
emitting human readable text. This way a json parser is never given
"invalid" input.

Pair-Programmed-With: Shachar Sharon &lt;ssharon@redhat.com&gt;
Signed-off-by: Shachar Sharon &lt;ssharon@redhat.com&gt;
Signed-off-by: John Mulligan &lt;jmulligan@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-tools: reformat ctdb.c with clang-format</title>
<updated>2026-02-20T00:47:32+00:00</updated>
<author>
<name>John Mulligan</name>
<email>jmulligan@redhat.com</email>
</author>
<published>2026-02-10T18:55:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d688eedf66b1b650fad7b0210c5c6eb33b0548af'/>
<id>d688eedf66b1b650fad7b0210c5c6eb33b0548af</id>
<content type='text'>
This is the result of running:
    clang-format -i ctdb/tools/ctdb.c

This is in preparation for some upcoming changes that add fields to the
struct tables and general recommendations to use `clang-format` and/or
`git clang-format` to keep samba code formatted consistently.

Signed-off-by: John Mulligan &lt;jmulligan@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the result of running:
    clang-format -i ctdb/tools/ctdb.c

This is in preparation for some upcoming changes that add fields to the
struct tables and general recommendations to use `clang-format` and/or
`git clang-format` to keep samba code formatted consistently.

Signed-off-by: John Mulligan &lt;jmulligan@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-scripts: Only send notifies for newly taken IPs</title>
<updated>2026-02-18T11:13:40+00:00</updated>
<author>
<name>Peter Schwenke</name>
<email>pschwenke@ddn.com</email>
</author>
<published>2025-04-29T06:33:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=e4914e6a4f1cb77eebf86c5ab3f241c2a9e5bd05'/>
<id>e4914e6a4f1cb77eebf86c5ab3f241c2a9e5bd05</id>
<content type='text'>
We no longer delete shared state (and send notifies) for
IPs previously held by the current node. The NFS lock manager
won't have released locks for these IPs, so won't generate
SM_MON on reclaim attempts.  Therefore, there will be
no add-client to put them back.

We now record newly taken IP addresses in takeip,
and only send notifies for those during
ipreallocated.  The extra notifies were also confusing
statd.

Update existing tests to always simulate taking all of a node's IPs.
This causes no output changes.

Test updates confirm the subtleties of the statd_callout_helper
behaviour change.  These pretend to only take a single IP, so
SM_NOTIFY must not be sent for other IPs.  Shared state should
remain for these other files.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15939

Signed-off-by: Peter Schwenke &lt;pschwenke@ddn.com&gt;
Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We no longer delete shared state (and send notifies) for
IPs previously held by the current node. The NFS lock manager
won't have released locks for these IPs, so won't generate
SM_MON on reclaim attempts.  Therefore, there will be
no add-client to put them back.

We now record newly taken IP addresses in takeip,
and only send notifies for those during
ipreallocated.  The extra notifies were also confusing
statd.

Update existing tests to always simulate taking all of a node's IPs.
This causes no output changes.

Test updates confirm the subtleties of the statd_callout_helper
behaviour change.  These pretend to only take a single IP, so
SM_NOTIFY must not be sent for other IPs.  Shared state should
remain for these other files.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15939

Signed-off-by: Peter Schwenke &lt;pschwenke@ddn.com&gt;
Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-scripts: Move NFS lock manager grace hack to callout</title>
<updated>2026-02-09T11:17:41+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2025-05-01T23:15:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=6b76a13b0861755b804aedb7a3ca009bda6e8478'/>
<id>6b76a13b0861755b804aedb7a3ca009bda6e8478</id>
<content type='text'>
The "startipreallocate" event was added so the NFS-Ganesha callout
could use it to start grace.  Use it for Linux kernel lock manager
grace too.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: Volker Lendecke &lt;vl@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "startipreallocate" event was added so the NFS-Ganesha callout
could use it to start grace.  Use it for Linux kernel lock manager
grace too.

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: Volker Lendecke &lt;vl@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-scripts: Reformat with "shfmt -w -p -i 0 -fn"</title>
<updated>2025-03-29T11:34:41+00:00</updated>
<author>
<name>Martin Schwenke</name>
<email>mschwenke@ddn.com</email>
</author>
<published>2025-03-14T06:28:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=0eaf4601d073a6e4d5a026d4a4a9d613aff6a696'/>
<id>0eaf4601d073a6e4d5a026d4a4a9d613aff6a696</id>
<content type='text'>
Best reviewed with "git show -w".

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Best reviewed with "git show -w".

Signed-off-by: Martin Schwenke &lt;mschwenke@ddn.com&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ctdb-scripts: Add ctdb_diagnostics -l option</title>
<updated>2025-03-29T11:34:41+00:00</updated>
<author>
<name>yogita72</name>
<email>yogita.bijani@gmail.com</email>
</author>
<published>2025-03-11T23:55:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=f1cb1b1fc3984b22f7bf241511e79b1732f2b215'/>
<id>f1cb1b1fc3984b22f7bf241511e79b1732f2b215</id>
<content type='text'>
Allows ctdb_diagnostics to be run on the local node without onnode.

Signed-off-by: yogita72 &lt;yogita.bijani@gmail.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allows ctdb_diagnostics to be run on the local node without onnode.

Signed-off-by: yogita72 &lt;yogita.bijani@gmail.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Ralph Boehme &lt;slow@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>remove usage of bzero</title>
<updated>2025-01-02T17:01:30+00:00</updated>
<author>
<name>Michael Tokarev</name>
<email>mjt@tls.msk.ru</email>
</author>
<published>2024-11-18T12:00:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=bf1e1387ea4a136d06029863eb63b3b1db1c7db0'/>
<id>bf1e1387ea4a136d06029863eb63b3b1db1c7db0</id>
<content type='text'>
bzero() function has been deprecated for a long time.
In samba it is replaced with memset().  But samba also
provides common memory-zeroing macros, like ZERO_STRUCT().
In all places where bzero() is used, it actually meant to
zero a structure or an array.

So replace these bzero() calls with ZERO_STRUCT() or
ZERO_ARRAY() as appropriate, and remove bzero() replacement
and testing entirely.

While at it, also stop checking for presence of memset() -
this function is standard for a very long time, and the
only conditional where HAVE_MEMSET were used, was to
provide replacement for bzero() - in all other places
memset() is used unconditionally.

Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Pavel Filipenský &lt;pfilipensky@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzero() function has been deprecated for a long time.
In samba it is replaced with memset().  But samba also
provides common memory-zeroing macros, like ZERO_STRUCT().
In all places where bzero() is used, it actually meant to
zero a structure or an array.

So replace these bzero() calls with ZERO_STRUCT() or
ZERO_ARRAY() as appropriate, and remove bzero() replacement
and testing entirely.

While at it, also stop checking for presence of memset() -
this function is standard for a very long time, and the
only conditional where HAVE_MEMSET were used, was to
provide replacement for bzero() - in all other places
memset() is used unconditionally.

Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Pavel Filipenský &lt;pfilipensky@samba.org&gt;</pre>
</div>
</content>
</entry>
</feed>
