mirror of
https://github.com/gluster/glusterfs.git
synced 2026-02-05 15:48:40 +01:00
fixes: #721 Change-Id: I5333540e3c635ccf441cf1f4696e4c8986e38ea8 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
19 lines
404 B
Bash
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}'
|
|
}
|