File: ec.rc

package info (click to toggle)
glusterfs 11.2-2
  • links: PTS
  • area: main
  • in suites: sid
  • size: 28,244 kB
  • sloc: ansic: 471,238; sh: 45,610; python: 16,893; perl: 3,328; makefile: 2,014; yacc: 487; ruby: 171; lisp: 124; xml: 75; lex: 61
file content (18 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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}'
}