mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-04 12:22:00 +03:00
tests: check.sh using grep -F
fgrep is non-standard and deprecated. Use grep -F instead.
This commit is contained in:
@ -148,7 +148,7 @@ mirror_nonredundant() {
|
|||||||
attr=$(get lv_field "$lv" attr)
|
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) &&
|
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 "TEST WARNING: $lv is a snapshot origin and looks like a mirror,"
|
||||||
echo "assuming it is actually a mirror"
|
echo "assuming it is actually a mirror"
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user