]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-scripts: Use nfsconf as a last resort get nfsd thread count
authorMartin Schwenke <martin@meltin.net>
Mon, 20 Jul 2020 02:02:45 +0000 (12:02 +1000)
committerKarolin Seeger <kseeger@samba.org>
Thu, 6 Aug 2020 13:32:39 +0000 (13:32 +0000)
commitecaa24765cd6fdffc2d3bc46224f5b2a18afb2fc
tree52bb054bb7e6336607e8c44e40ae25f0d90e509e
parent6dcbb00fdfac4850f61169d334e63aebadb8f509
ctdb-scripts: Use nfsconf as a last resort get nfsd thread count

If nfsconf exists then use it as last resort to attempt to extract
[nfsd]:threads from /etc/nfs.conf.

Invocation of nfsconf requires "|| true" because this script uses "set
-e".  Add a stub that always fails to at least test this much.

RN: Use nfsconf utility for variable values in CTDB NFS scripts
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14444
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon Jul 27 07:06:58 UTC 2020 on sn-devel-184

(cherry picked from commit 642dc6ded6426ba2fbf3ac1e5cd71aae11ca245b)
ctdb/config/nfs-linux-kernel-callout
ctdb/tests/UNIT/eventscripts/stubs/nfsconf [new file with mode: 0755]