From fb064ec4e302e59aca9ba8a8d97e4cc2d82d31ef Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 17 Jun 2013 13:06:23 +0530 Subject: nfs: Remove afr split-brain handling in nfs We added this code as an interim fix until afr can handle split-brains even when opens are not issued. Afr code has matured to reject fd based fops when there are split-brains so we can remove it. Change-Id: Ib337f78eccee86469a5eaabed1a547a2cea2bdcf BUG: 974972 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/5227 Tested-by: Gluster Build System Reviewed-by: Ravishankar N Reviewed-by: Jeff Darcy Reviewed-by: Vijay Bellur --- tests/volume.rc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 54b6173c..5bb974e1 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -105,6 +105,11 @@ function generate_shd_statedump { generate_statedump $(get_shd_process_pid $vol) } +function generate_nfs_statedump { + local vol=$1 + generate_statedump $(get_nfs_pid $vol) +} + function generate_brick_statedump { local vol=$1 local host=$2 @@ -119,6 +124,13 @@ function afr_child_up_status_in_shd { _afr_child_up_status $vol $brick_id generate_shd_statedump } +function afr_child_up_status_in_nfs { + local vol=$1 + #brick_id is (brick-num in volume info - 1) + local brick_id=$2 + _afr_child_up_status $vol $brick_id generate_nfs_statedump +} + function nfs_up_status { gluster volume status | grep "NFS Server" | awk '{print $6}' } -- cgit