ocfs2/cluster: Make fence method configurable - v2
authorSunil Mushran <sunil.mushran@oracle.com>
Wed, 18 Nov 2009 00:29:19 +0000 (16:29 -0800)
committerJoel Becker <joel.becker@oracle.com>
Thu, 3 Dec 2009 00:49:26 +0000 (16:49 -0800)
By default, o2cb fences the box by calling emergency_restart(). While this
scheme works well in production, it comes in the way during testing as it
does not let the tester take stack/core dumps for analysis.

This patch allows user to dynamically change the fence method to panic() by:
# echo "panic" > /sys/kernel/config/cluster/<clustername>/fence_method

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>

No differences found