ctdb-scripts: Add a 'rm' stub so statd-callout tests work correctly
authorAmitay Isaacs <amitay@gmail.com>
Thu, 5 Mar 2015 02:10:32 +0000 (13:10 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 27 Apr 2015 21:54:48 +0000 (23:54 +0200)
commit8e034d4e1a4a46dc4f0a7a393eb4ab0de979af0f
treed71775276e5dda1fb4d98b0abbc88c334017dfea
parent189ed91edc0e22b56a1689fbbe57b744d8afc711
ctdb-scripts: Add a 'rm' stub so statd-callout tests work correctly

statd-callout tries to remove global files from /var/lib/nfs/statd and
this causes errors in tests.  Add an rm stub that ignores attempts to
remove these files but invokes /bin/rm for anything else.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Pair-programmed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 956e51707d7ddcff060352f54d11ff42bdcc51ef)

The last 10 patches address

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11204

CTDB statd-callout does not scale.
ctdb/tests/eventscripts/stubs/rm [new file with mode: 0755]