mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-09 12:58:41 +03:00
tests: check.sh using grep -F
fgrep is non-standard and deprecated. Use grep -F instead.
This commit is contained in:
parent
824db54128
commit
c0197040a5
@ -148,7 +148,7 @@ mirror_nonredundant() {
|
||||
attr=$(get lv_field "$lv" attr)
|
||||
(echo "$attr" | grep "^......m...$" >/dev/null) || {
|
||||
if (echo "$attr" | grep "^o.........$" >/dev/null) &&
|
||||
lvs -a | fgrep "[${2}_mimage" >/dev/null; then
|
||||
lvs -a | grep -F "[${2}_mimage" >/dev/null; then
|
||||
echo "TEST WARNING: $lv is a snapshot origin and looks like a mirror,"
|
||||
echo "assuming it is actually a mirror"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user