mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-29 15:22:30 +03:00
thin: Support thin_check --clear-needs-check-flag.
Update thin provisioning tools to version 0.3.2 or later!
This commit is contained in:
parent
b38a3d8c85
commit
cc72f340d7
@ -1,5 +1,7 @@
|
||||
Version 2.02.106 -
|
||||
====================================
|
||||
Add configure --disable-thin_check_needs_check to support old thin_check.
|
||||
Use thin_check --clear-needs-check-flag by default.
|
||||
Export lvm_even_rand() for controlled provision of random numbers.
|
||||
Add lvmthin man page to section 7.
|
||||
Extend internal validation of lv names size is less then 128 chars.
|
||||
|
12
configure.in
12
configure.in
@ -476,6 +476,18 @@ AC_DEFINE_UNQUOTED([THIN_DUMP_CMD], ["$THIN_DUMP_CMD"],
|
||||
AC_DEFINE_UNQUOTED([THIN_REPAIR_CMD], ["$THIN_REPAIR_CMD"],
|
||||
[The path to 'thin_repair', if available.])
|
||||
|
||||
dnl -- thin_check needs-check flag
|
||||
AC_MSG_CHECKING(whether thin_check supports the needs-check flag)
|
||||
AC_ARG_ENABLE(thin_check_needs_check,
|
||||
AC_HELP_STRING([--disable-thin_check_needs_check],
|
||||
[required if thin_check version is < 0.3.0]),
|
||||
THIN_CHECK_NEEDS_CHECK=$enableval, THIN_CHECK_NEEDS_CHECK=yes)
|
||||
AC_MSG_RESULT($THIN_CHECK_NEEDS_CHECK)
|
||||
|
||||
if test x$THIN_CHECK_NEEDS_CHECK = xyes; then
|
||||
AC_DEFINE([THIN_CHECK_NEEDS_CHECK], 1, [Define to 1 if the external 'thin_check' tool requires the --clear-needs-check-flag option])
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
dnl -- cache inclusion type
|
||||
AC_MSG_CHECKING(whether to include cache)
|
||||
|
@ -72,7 +72,12 @@
|
||||
# define DEFAULT_DMEVENTD_PATH DMEVENTD_PATH
|
||||
#endif
|
||||
|
||||
#ifdef THIN_CHECK_NEEDS_CHECK
|
||||
# define DEFAULT_THIN_CHECK_OPTIONS "-q --clear-needs-check-flag"
|
||||
#else
|
||||
# define DEFAULT_THIN_CHECK_OPTIONS "-q"
|
||||
#endif
|
||||
|
||||
#define DEFAULT_THIN_REPAIR_OPTIONS ""
|
||||
#define DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS 0
|
||||
#define DEFAULT_THIN_POOL_MAX_METADATA_SIZE (16 * 1024 * 1024) /* KB */
|
||||
|
Loading…
Reference in New Issue
Block a user