ctdb-scripts: Move filesystem monitoring into a function, clean it up
authorMartin Schwenke <martin@meltin.net>
Fri, 17 Jul 2015 10:04:44 +0000 (20:04 +1000)
committerAmitay Isaacs <amitay@samba.org>
Sat, 29 Aug 2015 15:06:25 +0000 (17:06 +0200)
commit6b4a46e5742732d7cbdf911b74ab0bb1fc8e3b97
tree4b291f3403ac400ddd048401d5a55e41f38fd2a2
parent47f7d1b1c8432ffdfb71176cf64cdd31e188e59c
ctdb-scripts: Move filesystem monitoring into a function, clean it up

Drop obvious comments.  Use die() for less lines of code.  Use a case
statement to avoid forking unnecessary processes for each filesystem
being checked.  Drop parentheses around percentages in messages.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/05.system