1
0
mirror of https://github.com/gluster/glusterfs.git synced 2026-02-05 15:48:40 +01:00
Files
glusterfs/tests/ec.rc
Pranith Kumar K ea95631ff4 cluster/ec: quorum-count implementation
fixes: #721
Change-Id: I5333540e3c635ccf441cf1f4696e4c8986e38ea8
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
2019-09-08 09:09:52 +05:30

19 lines
404 B
Bash

#!/bin/bash
function ec_up_status()
{
local v=$1
local m=$2
local ec_id=$3
grep -E "^up =" $m/.meta/graphs/active/${v}-disperse-${ec_id}/private | cut -f2 -d'='
}
function ec_option_value()
{
local v=$1
local m=$2
local ec_id=$3
local opt=$4
grep -E "^$opt =" $m/.meta/graphs/active/${v}-disperse-${ec_id}/private | cut -f2 -d'='| awk '{print $1}'
}