ctdb-scripts: Use nfsconf as a last resort get nfsd thread count
commit642dc6ded6426ba2fbf3ac1e5cd71aae11ca245b
authorMartin Schwenke <martin@meltin.net>
Mon, 20 Jul 2020 02:02:45 +0000 (20 12:02 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 27 Jul 2020 07:06:57 +0000 (27 07:06 +0000)
tree2d555440fe07d489470907a3bbebc542517ebe27
parent334dd8cedda6a341e3b89c9adc8102ea5480e452
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.

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
ctdb/config/nfs-linux-kernel-callout
ctdb/tests/UNIT/eventscripts/stubs/nfsconf [new file with mode: 0755]