master - tests: check for real mirror target type
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=215ab4c9cec497465a60b91ef53046665ed5e1d2 Commit: 215ab4c9cec497465a60b91ef53046665ed5e1d2 Parent: fce72434270cb1bdd14ff896cd1640bc51c93084 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Jun 4 11:08:45 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Jun 4 15:57:42 2013 +0200
tests: check for real mirror target type
Use new available attr instead of guessing...
--- test/lib/check.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/check.sh +1 -1
@@ -118,7 +118,7 @@ mirror() { mirror_nonredundant() { local lv=$1/$2 local attr=$(get lv_field $lv attr) - (echo "$attr" | grep "^m........$" >/dev/null) || { + (echo "$attr" | grep "^......m..$" >/dev/null) || { if (echo "$attr" | grep "^o........$" >/dev/null) && lvs -a | fgrep "[${2}_mimage" >/dev/null; then echo "TEST WARNING: $lv is a snapshot origin and looks like a mirror,"