mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
configure: warn about older version of cache_check
For proper usage of Cache kernel metadata format V2, new cache_check tool is basically mandatory. Print warning during configure time about this problem.
This commit is contained in:
parent
1c916ec5ff
commit
358eee15f3
15
configure
vendored
15
configure
vendored
@ -9256,6 +9256,11 @@ $as_echo "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" fo
|
|||||||
CACHE_CHECK_VERSION_WARN=y
|
CACHE_CHECK_VERSION_WARN=y
|
||||||
CACHE_CHECK_NEEDS_CHECK=no
|
CACHE_CHECK_NEEDS_CHECK=no
|
||||||
fi
|
fi
|
||||||
|
if test "$CACHE_CHECK_VSN_MINOR" -lt 7 ; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&5
|
||||||
|
$as_echo "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&2;}
|
||||||
|
CACHE_CHECK_VERSION_WARN=y
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Empty means a config way to ignore cache dumping
|
# Empty means a config way to ignore cache dumping
|
||||||
@ -17044,8 +17049,8 @@ $as_echo "$as_me: WARNING: Support for thin provisioning is limited since some t
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$THIN_CHECK_VERSION_WARN"; then :
|
if test -n "$THIN_CHECK_VERSION_WARN"; then :
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should also install thin_check vsn 0.3.2 (or later) to use lvm2 thin provisioning" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&5
|
||||||
$as_echo "$as_me: WARNING: You should also install thin_check vsn 0.3.2 (or later) to use lvm2 thin provisioning" >&2;}
|
$as_echo "$as_me: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&2;}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$CACHE_CONFIGURE_WARN"; then :
|
if test -n "$CACHE_CONFIGURE_WARN"; then :
|
||||||
@ -17053,6 +17058,12 @@ if test -n "$CACHE_CONFIGURE_WARN"; then :
|
|||||||
$as_echo "$as_me: WARNING: Support for cache is limited since some cache tools are missing!" >&2;}
|
$as_echo "$as_me: WARNING: Support for cache is limited since some cache tools are missing!" >&2;}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n "$CACHE_CHECK_VERSION_WARN"; then :
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&5
|
||||||
|
$as_echo "$as_me: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&2;}
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$ODIRECT" != yes; then :
|
if test "$ODIRECT" != yes; then :
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5
|
||||||
$as_echo "$as_me: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
|
$as_echo "$as_me: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
|
||||||
|
10
configure.in
10
configure.in
@ -617,6 +617,10 @@ case "$CACHE" in
|
|||||||
CACHE_CHECK_VERSION_WARN=y
|
CACHE_CHECK_VERSION_WARN=y
|
||||||
CACHE_CHECK_NEEDS_CHECK=no
|
CACHE_CHECK_NEEDS_CHECK=no
|
||||||
fi
|
fi
|
||||||
|
if test "$CACHE_CHECK_VSN_MINOR" -lt 7 ; then
|
||||||
|
AC_MSG_WARN([$CACHE_CHECK_CMD: Old version "$CACHE_CHECK_VSN" does not support new cache format V2])
|
||||||
|
CACHE_CHECK_VERSION_WARN=y
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Empty means a config way to ignore cache dumping
|
# Empty means a config way to ignore cache dumping
|
||||||
@ -2256,10 +2260,14 @@ AS_IF([test -n "$THIN_CONFIGURE_WARN"],
|
|||||||
[AC_MSG_WARN([Support for thin provisioning is limited since some thin provisioning tools are missing!])])
|
[AC_MSG_WARN([Support for thin provisioning is limited since some thin provisioning tools are missing!])])
|
||||||
|
|
||||||
AS_IF([test -n "$THIN_CHECK_VERSION_WARN"],
|
AS_IF([test -n "$THIN_CHECK_VERSION_WARN"],
|
||||||
[AC_MSG_WARN([You should also install thin_check vsn 0.3.2 (or later) to use lvm2 thin provisioning])])
|
[AC_MSG_WARN([You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning])])
|
||||||
|
|
||||||
AS_IF([test -n "$CACHE_CONFIGURE_WARN"],
|
AS_IF([test -n "$CACHE_CONFIGURE_WARN"],
|
||||||
[AC_MSG_WARN([Support for cache is limited since some cache tools are missing!])])
|
[AC_MSG_WARN([Support for cache is limited since some cache tools are missing!])])
|
||||||
|
|
||||||
|
AS_IF([test -n "$CACHE_CHECK_VERSION_WARN"],
|
||||||
|
[AC_MSG_WARN([You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2])])
|
||||||
|
|
||||||
|
|
||||||
AS_IF([test "$ODIRECT" != yes],
|
AS_IF([test "$ODIRECT" != yes],
|
||||||
[AC_MSG_WARN([O_DIRECT disabled: low-memory pvmove may lock up])])
|
[AC_MSG_WARN([O_DIRECT disabled: low-memory pvmove may lock up])])
|
||||||
|
Loading…
Reference in New Issue
Block a user