~ubuntu-branches/debian/sid/lvm2/sid

« back to all changes in this revision

Viewing changes to test/shell/mirror-names.sh

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2014-08-19 15:37:06 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20140819153706-i1gaio8lg534dara
Tags: 2.02.109-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
test_description="check namings of mirrored LV"
14
14
 
15
 
. lib/test
 
15
. lib/inittest
16
16
 
17
17
# ---------------------------------------------------------------------
18
18
# Utilities
22
22
        local lv=$1
23
23
        shift
24
24
        local devices=$@
25
 
        local devs=$(get lv_field $lv devices -a | sed 's/([0-9]*)//g; s/ //g; s/,/ /g')
 
25
        local devs
 
26
 
 
27
        devs=$(get lv_devices "$lv")
26
28
 
27
29
        for d in $devs; do
28
30
                (echo "$devices" | grep $d) || return 1