mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
tests: check for real mirror target type
Use new available attr instead of guessing...
This commit is contained in:
parent
fce7243427
commit
215ab4c9ce
@ -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,"
|
||||
|
Loading…
x
Reference in New Issue
Block a user