Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3eed0aa7dca9c189…
Commit: 3eed0aa7dca9c1895bbf80e1585debf9bddac5a8
Parent: 131693c42143505f969821b7f2cab0bff471c620
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Thu Dec 12 10:01:37 2013 +0100
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Thu Dec 12 15:02:12 2013 +0100
man: -Z zeroes 4KiB, not just 1KiB
---
man/lvconvert.8.in | 2 +-
man/lvcreate.8.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/man/lvconvert.8.in b/man/lvconvert.8.in
index 30e9809..44b89af 100644
--- a/man/lvconvert.8.in
+++ b/man/lvconvert.8.in
@@ -244,7 +244,7 @@ kernel and passed down to the Physical Volume.
Default is \fIpassdown\fP.
.TP
.BR \-Z ", " \-\-zero " {" \fIy | \fIn }
-Controls zeroing of the first KB of data in the snapshot.
+Controls zeroing of the first 4KiB of data in the snapshot.
If the volume is read-only the snapshot will not be zeroed.
For thin pool volumes it controls zeroing of provisioned blocks.
Note: Provisioning of large zeroed chunks impacts performance.
diff --git a/man/lvcreate.8.in b/man/lvcreate.8.in
index 08cc15c..4a769cb 100644
--- a/man/lvcreate.8.in
+++ b/man/lvcreate.8.in
@@ -417,7 +417,7 @@ signatures are detected only in this case).
Logical Volume is not wiped if the read only flag is set.
.TP
.BR \-Z ", " \-\-zero " {" \fIy | \fIn }
-Controls zeroing of the first KiB of data in the new logical volume.
+Controls zeroing of the first 4KiB of data in the new logical volume.
.br
Default is \fIy\fPes.
.br
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=131693c42143505f…
Commit: 131693c42143505f969821b7f2cab0bff471c620
Parent: b424b6398be64aec6a5772bb847f78b1941a0fe1
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Thu Dec 12 14:32:11 2013 +0100
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Thu Dec 12 14:32:40 2013 +0100
autoreconf: latest changes
---
configure | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/configure b/configure
index f48c89b..a156460 100755
--- a/configure
+++ b/configure
@@ -1619,9 +1619,9 @@ Optional Packages:
[[TYPE=none]]
--with-thin=TYPE thin provisioning support: internal/shared/none
[[TYPE=internal]]
- --with-thin-check=PATH thin_check tool: [[thin_check]]
- --with-thin-dump=PATH thin_dump tool: [[thin_dump]]
- --with-thin-repair=PATH thin_repair tool: [[thin_repair]]
+ --with-thin-check=PATH thin_check tool: [[autodetect]]
+ --with-thin-dump=PATH thin_dump tool: [[autodetect]]
+ --with-thin-repair=PATH thin_repair tool: [[autodetect]]
--with-ocfdir=DIR install OCF files in DIR
[[PREFIX/lib/ocf/resource.d/lvm2]]
--with-default-pid-dir=PID_DIR
@@ -7154,7 +7154,7 @@ fi
if test "${with_thin_check+set}" = set; then :
withval=$with_thin_check; THIN_CHECK_CMD=$withval
else
- THIN_CHECK_CMD="thin_check"
+ THIN_CHECK_CMD="autodetect"
fi
@@ -7162,7 +7162,7 @@ fi
if test "${with_thin_dump+set}" = set; then :
withval=$with_thin_dump; THIN_DUMP_CMD=$withval
else
- THIN_DUMP_CMD="thin_dump"
+ THIN_DUMP_CMD="autodetect"
fi
@@ -7170,7 +7170,7 @@ fi
if test "${with_thin_repair+set}" = set; then :
withval=$with_thin_repair; THIN_REPAIR_CMD=$withval
else
- THIN_REPAIR_CMD="thin_repair"
+ THIN_REPAIR_CMD="autodetect"
fi
@@ -7190,7 +7190,7 @@ esac
case "$THIN" in
internal|shared)
# Empty means a config way to ignore thin checking
- if test "$THIN_CHECK_CMD" = "thin_check"; then
+ if test "$THIN_CHECK_CMD" = "autodetect"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}thin_check", so it can be a program name with args.
set dummy ${ac_tool_prefix}thin_check; ac_word=$2
@@ -7275,7 +7275,7 @@ $as_echo "no" >&6; }
fi
if test "x$ac_pt_THIN_CHECK_CMD" = x; then
- THIN_CHECK_CMD="thin_check"
+ THIN_CHECK_CMD=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
@@ -7289,15 +7289,15 @@ else
THIN_CHECK_CMD="$ac_cv_path_THIN_CHECK_CMD"
fi
- test "$THIN_CHECK_CMD" = "thin_check" && {
+ test -z "$THIN_CHECK_CMD" && {
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thin_check not found in path $PATH" >&5
$as_echo "$as_me: WARNING: thin_check not found in path $PATH" >&2;}
- THIN_CHECK_CMD=thin_check
+ THIN_CHECK_CMD=/usr/sbin/thin_check
THIN_CONFIGURE_WARN=y
}
fi
# Empty means a config way to ignore thin checking
- if test "$THIN_DUMP_CMD" = "thin_dump"; then
+ if test "$THIN_DUMP_CMD" = "autodetect"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}thin_dump", so it can be a program name with args.
set dummy ${ac_tool_prefix}thin_dump; ac_word=$2
@@ -7382,7 +7382,7 @@ $as_echo "no" >&6; }
fi
if test "x$ac_pt_THIN_DUMP_CMD" = x; then
- THIN_DUMP_CMD="thin_dump"
+ THIN_DUMP_CMD=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
@@ -7396,15 +7396,15 @@ else
THIN_DUMP_CMD="$ac_cv_path_THIN_DUMP_CMD"
fi
- test "$THIN_DUMP_CMD" = "thin_dump" && {
+ test -z "$THIN_DUMP_CMD" && {
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thin_dump not found in path $PATH" >&5
$as_echo "$as_me: WARNING: thin_dump not found in path $PATH" >&2;}
- THIN_DUMP_CMD=thin_dump
+ THIN_DUMP_CMD=/usr/sbin/thin_dump
THIN_CONFIGURE_WARN=y
}
fi
# Empty means a config way to ignore thin checking
- if test "$THIN_REPAIR_CMD" = "thin_repair"; then
+ if test "$THIN_REPAIR_CMD" = "autodetect"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}thin_repair", so it can be a program name with args.
set dummy ${ac_tool_prefix}thin_repair; ac_word=$2
@@ -7506,7 +7506,7 @@ fi
test -z "$THIN_REPAIR_CMD" && {
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thin_repair not found in path $PATH" >&5
$as_echo "$as_me: WARNING: thin_repair not found in path $PATH" >&2;}
- THIN_REPAIR_CMD=thin_repair
+ THIN_REPAIR_CMD=/usr/sbin/thin_repair
THIN_CONFIGURE_WARN=y
}
fi
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=aefab64e690cb5fb…
Commit: aefab64e690cb5fbbd28a07d27a4f510d8aca32b
Parent: 6c0e44d5a2e82aa160d48e83992e7ca342bc4bdf
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Thu Dec 12 13:45:48 2013 +0100
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Thu Dec 12 13:45:48 2013 +0100
autoreconf: latest changes
---
configure | 265 +++++++++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 230 insertions(+), 35 deletions(-)
diff --git a/configure b/configure
index ff7185d..f48c89b 100755
--- a/configure
+++ b/configure
@@ -1618,10 +1618,10 @@ Optional Packages:
--with-replicators=TYPE replicator support: internal/shared/none
[[TYPE=none]]
--with-thin=TYPE thin provisioning support: internal/shared/none
- [[TYPE=none]]
- --with-thin-check=PATH thin_check tool: [[autodetect]]
- --with-thin-dump=PATH thin_dump tool: [[autodetect]]
- --with-thin-repair=PATH thin_repair tool: [[autodetect]]
+ [[TYPE=internal]]
+ --with-thin-check=PATH thin_check tool: [[thin_check]]
+ --with-thin-dump=PATH thin_dump tool: [[thin_dump]]
+ --with-thin-repair=PATH thin_repair tool: [[thin_repair]]
--with-ocfdir=DIR install OCF files in DIR
[[PREFIX/lib/ocf/resource.d/lvm2]]
--with-default-pid-dir=PID_DIR
@@ -7146,9 +7146,34 @@ $as_echo_n "checking whether to include thin provisioning... " >&6; }
if test "${with_thin+set}" = set; then :
withval=$with_thin; THIN=$withval
else
- THIN=none
+ THIN=internal
fi
+
+# Check whether --with-thin-check was given.
+if test "${with_thin_check+set}" = set; then :
+ withval=$with_thin_check; THIN_CHECK_CMD=$withval
+else
+ THIN_CHECK_CMD="thin_check"
+fi
+
+
+# Check whether --with-thin-dump was given.
+if test "${with_thin_dump+set}" = set; then :
+ withval=$with_thin_dump; THIN_DUMP_CMD=$withval
+else
+ THIN_DUMP_CMD="thin_dump"
+fi
+
+
+# Check whether --with-thin-repair was given.
+if test "${with_thin_repair+set}" = set; then :
+ withval=$with_thin_repair; THIN_REPAIR_CMD=$withval
+else
+ THIN_REPAIR_CMD="thin_repair"
+fi
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
$as_echo "$THIN" >&6; }
@@ -7160,20 +7185,15 @@ $as_echo "#define THIN_INTERNAL 1" >>confdefs.h
*) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
esac
+# Test if necessary thin tools are available
+# if not - use plain defaults and warn user
case "$THIN" in
internal|shared)
-
-# Check whether --with-thin-check was given.
-if test "${with_thin_check+set}" = set; then :
- withval=$with_thin_check; THIN_CHECK_CMD=$withval
-else
- THIN_CHECK_CMD="autodetect"
-fi
-
# Empty means a config way to ignore thin checking
- if test "$THIN_CHECK_CMD" = "autodetect"; then
- # Extract the first word of "thin_check", so it can be a program name with args.
-set dummy thin_check; ac_word=$2
+ if test "$THIN_CHECK_CMD" = "thin_check"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}thin_check", so it can be a program name with args.
+set dummy ${ac_tool_prefix}thin_check; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then :
@@ -7212,20 +7232,75 @@ $as_echo "no" >&6; }
fi
- test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5
- fi
+fi
+if test -z "$ac_cv_path_THIN_CHECK_CMD"; then
+ ac_pt_THIN_CHECK_CMD=$THIN_CHECK_CMD
+ # Extract the first word of "thin_check", so it can be a program name with args.
+set dummy thin_check; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_ac_pt_THIN_CHECK_CMD+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ac_pt_THIN_CHECK_CMD in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ac_pt_THIN_CHECK_CMD="$ac_pt_THIN_CHECK_CMD" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_ac_pt_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
-# Check whether --with-thin-dump was given.
-if test "${with_thin_dump+set}" = set; then :
- withval=$with_thin_dump; THIN_DUMP_CMD=$withval
+ ;;
+esac
+fi
+ac_pt_THIN_CHECK_CMD=$ac_cv_path_ac_pt_THIN_CHECK_CMD
+if test -n "$ac_pt_THIN_CHECK_CMD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_CHECK_CMD" >&5
+$as_echo "$ac_pt_THIN_CHECK_CMD" >&6; }
else
- THIN_DUMP_CMD="autodetect"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_pt_THIN_CHECK_CMD" = x; then
+ THIN_CHECK_CMD="thin_check"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ THIN_CHECK_CMD=$ac_pt_THIN_CHECK_CMD
+ fi
+else
+ THIN_CHECK_CMD="$ac_cv_path_THIN_CHECK_CMD"
fi
+ test "$THIN_CHECK_CMD" = "thin_check" && {
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thin_check not found in path $PATH" >&5
+$as_echo "$as_me: WARNING: thin_check not found in path $PATH" >&2;}
+ THIN_CHECK_CMD=thin_check
+ THIN_CONFIGURE_WARN=y
+ }
+ fi
# Empty means a config way to ignore thin checking
- if test "$THIN_DUMP_CMD" = "autodetect"; then
- # Extract the first word of "thin_dump", so it can be a program name with args.
-set dummy thin_dump; ac_word=$2
+ if test "$THIN_DUMP_CMD" = "thin_dump"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}thin_dump", so it can be a program name with args.
+set dummy ${ac_tool_prefix}thin_dump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_THIN_DUMP_CMD+set}" = set; then :
@@ -7264,20 +7339,75 @@ $as_echo "no" >&6; }
fi
- test -z "$THIN_DUMP_CMD" && as_fn_error $? "thin_dump not found in path $PATH" "$LINENO" 5
- fi
+fi
+if test -z "$ac_cv_path_THIN_DUMP_CMD"; then
+ ac_pt_THIN_DUMP_CMD=$THIN_DUMP_CMD
+ # Extract the first word of "thin_dump", so it can be a program name with args.
+set dummy thin_dump; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_ac_pt_THIN_DUMP_CMD+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ac_pt_THIN_DUMP_CMD in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ac_pt_THIN_DUMP_CMD="$ac_pt_THIN_DUMP_CMD" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_ac_pt_THIN_DUMP_CMD="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
-# Check whether --with-thin-repair was given.
-if test "${with_thin_repair+set}" = set; then :
- withval=$with_thin_repair; THIN_REPAIR_CMD=$withval
+ ;;
+esac
+fi
+ac_pt_THIN_DUMP_CMD=$ac_cv_path_ac_pt_THIN_DUMP_CMD
+if test -n "$ac_pt_THIN_DUMP_CMD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_DUMP_CMD" >&5
+$as_echo "$ac_pt_THIN_DUMP_CMD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_pt_THIN_DUMP_CMD" = x; then
+ THIN_DUMP_CMD="thin_dump"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ THIN_DUMP_CMD=$ac_pt_THIN_DUMP_CMD
+ fi
else
- THIN_REPAIR_CMD="autodetect"
+ THIN_DUMP_CMD="$ac_cv_path_THIN_DUMP_CMD"
fi
+ test "$THIN_DUMP_CMD" = "thin_dump" && {
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thin_dump not found in path $PATH" >&5
+$as_echo "$as_me: WARNING: thin_dump not found in path $PATH" >&2;}
+ THIN_DUMP_CMD=thin_dump
+ THIN_CONFIGURE_WARN=y
+ }
+ fi
# Empty means a config way to ignore thin checking
- if test "$THIN_REPAIR_CMD" = "autodetect"; then
- # Extract the first word of "thin_repair", so it can be a program name with args.
-set dummy thin_repair; ac_word=$2
+ if test "$THIN_REPAIR_CMD" = "thin_repair"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}thin_repair", so it can be a program name with args.
+set dummy ${ac_tool_prefix}thin_repair; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_THIN_REPAIR_CMD+set}" = set; then :
@@ -7316,7 +7446,69 @@ $as_echo "no" >&6; }
fi
- test -z "$THIN_REPAIR_CMD" && as_fn_error $? "thin_repair not found in path $PATH" "$LINENO" 5
+fi
+if test -z "$ac_cv_path_THIN_REPAIR_CMD"; then
+ ac_pt_THIN_REPAIR_CMD=$THIN_REPAIR_CMD
+ # Extract the first word of "thin_repair", so it can be a program name with args.
+set dummy thin_repair; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_ac_pt_THIN_REPAIR_CMD+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ac_pt_THIN_REPAIR_CMD in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ac_pt_THIN_REPAIR_CMD="$ac_pt_THIN_REPAIR_CMD" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_ac_pt_THIN_REPAIR_CMD="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+ac_pt_THIN_REPAIR_CMD=$ac_cv_path_ac_pt_THIN_REPAIR_CMD
+if test -n "$ac_pt_THIN_REPAIR_CMD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_REPAIR_CMD" >&5
+$as_echo "$ac_pt_THIN_REPAIR_CMD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_pt_THIN_REPAIR_CMD" = x; then
+ THIN_REPAIR_CMD=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ THIN_REPAIR_CMD=$ac_pt_THIN_REPAIR_CMD
+ fi
+else
+ THIN_REPAIR_CMD="$ac_cv_path_THIN_REPAIR_CMD"
+fi
+
+ test -z "$THIN_REPAIR_CMD" && {
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thin_repair not found in path $PATH" >&5
+$as_echo "$as_me: WARNING: thin_repair not found in path $PATH" >&2;}
+ THIN_REPAIR_CMD=thin_repair
+ THIN_CONFIGURE_WARN=y
+ }
fi
;;
esac
@@ -12574,6 +12766,9 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+test -n "$THIN_CONFIGURE_WARN" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&5
+$as_echo "$as_me: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&2;}
+
if test x$ODIRECT != xyes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=10a13dc03cd4da2d…
Commit: 10a13dc03cd4da2df3518f7a94014f167ec13d47
Parent: 9fcbe3c6f074443248922b61441bb2b37253a59c
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Thu Dec 12 13:07:59 2013 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Thu Dec 12 13:31:23 2013 +0100
thin: enable build of thin provisioning by default
Use internal type by default for thin provisioning.
If user is not interested in thin provisiong and doesn't
have thin provisining supporting tools installed,
configure will just print warning at the end of configure
process about limited support.
---
WHATS_NEW | 1 +
configure.in | 65 ++++++++++++++++++++++++++++++++++++---------------------
2 files changed, 42 insertions(+), 24 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 4b469d4..704d0be 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.105 -
=====================================
+ Enable support for thin provisioning for default configuration.
Improve process_each_lv_in_vg() tag processing.
Reodered and simplified logging code.
Fix SYSTEMD_READY assignment for foreign devices in lvmetad udev rules.
diff --git a/configure.in b/configure.in
index 851d3f7..cf297e8 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,6 @@
###############################################################################
## Copyright (C) 2000-2004 Sistina Software, Inc. All rights reserved.
-## Copyright (C) 2004-2012 Red Hat, Inc. All rights reserved.
+## Copyright (C) 2004-2013 Red Hat, Inc. All rights reserved.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions
@@ -409,8 +409,21 @@ AC_MSG_CHECKING(whether to include thin provisioning)
AC_ARG_WITH(thin,
AC_HELP_STRING([--with-thin=TYPE],
[thin provisioning support: internal/shared/none
- [[TYPE=none]]]),
- THIN=$withval, THIN=none)
+ [[TYPE=internal]]]),
+ THIN=$withval, THIN=internal)
+AC_ARG_WITH(thin-check,
+ AC_HELP_STRING([--with-thin-check=PATH],
+ [thin_check tool: [[thin_check]]]),
+ THIN_CHECK_CMD=$withval, THIN_CHECK_CMD="thin_check")
+AC_ARG_WITH(thin-dump,
+ AC_HELP_STRING([--with-thin-dump=PATH],
+ [thin_dump tool: [[thin_dump]]]),
+ THIN_DUMP_CMD=$withval, THIN_DUMP_CMD="thin_dump")
+AC_ARG_WITH(thin-repair,
+ AC_HELP_STRING([--with-thin-repair=PATH],
+ [thin_repair tool: [[thin_repair]]]),
+ THIN_REPAIR_CMD=$withval, THIN_REPAIR_CMD="thin_repair")
+
AC_MSG_RESULT($THIN)
case "$THIN" in
@@ -420,34 +433,36 @@ case "$THIN" in
*) AC_MSG_ERROR([--with-thin parameter invalid ($THIN)]) ;;
esac
+# Test if necessary thin tools are available
+# if not - use plain defaults and warn user
case "$THIN" in
internal|shared)
- AC_ARG_WITH(thin-check,
- AC_HELP_STRING([--with-thin-check=PATH],
- [thin_check tool: [[autodetect]]]),
- THIN_CHECK_CMD=$withval, THIN_CHECK_CMD="autodetect")
# Empty means a config way to ignore thin checking
- if test "$THIN_CHECK_CMD" = "autodetect"; then
- AC_PATH_PROG(THIN_CHECK_CMD, thin_check)
- test -z "$THIN_CHECK_CMD" && AC_MSG_ERROR(thin_check not found in path $PATH)
+ if test "$THIN_CHECK_CMD" = "thin_check"; then
+ AC_PATH_TOOL(THIN_CHECK_CMD, thin_check, thin_check)
+ test "$THIN_CHECK_CMD" = "thin_check" && {
+ AC_MSG_WARN([thin_check not found in path $PATH])
+ THIN_CHECK_CMD=thin_check
+ THIN_CONFIGURE_WARN=y
+ }
fi
- AC_ARG_WITH(thin-dump,
- AC_HELP_STRING([--with-thin-dump=PATH],
- [thin_dump tool: [[autodetect]]]),
- THIN_DUMP_CMD=$withval, THIN_DUMP_CMD="autodetect")
# Empty means a config way to ignore thin checking
- if test "$THIN_DUMP_CMD" = "autodetect"; then
- AC_PATH_PROG(THIN_DUMP_CMD, thin_dump)
- test -z "$THIN_DUMP_CMD" && AC_MSG_ERROR(thin_dump not found in path $PATH)
+ if test "$THIN_DUMP_CMD" = "thin_dump"; then
+ AC_PATH_TOOL(THIN_DUMP_CMD, thin_dump, thin_dump)
+ test "$THIN_DUMP_CMD" = "thin_dump" && {
+ AC_MSG_WARN(thin_dump not found in path $PATH)
+ THIN_DUMP_CMD=thin_dump
+ THIN_CONFIGURE_WARN=y
+ }
fi
- AC_ARG_WITH(thin-repair,
- AC_HELP_STRING([--with-thin-repair=PATH],
- [thin_repair tool: [[autodetect]]]),
- THIN_REPAIR_CMD=$withval, THIN_REPAIR_CMD="autodetect")
# Empty means a config way to ignore thin checking
- if test "$THIN_REPAIR_CMD" = "autodetect"; then
- AC_PATH_PROG(THIN_REPAIR_CMD, thin_repair)
- test -z "$THIN_REPAIR_CMD" && AC_MSG_ERROR(thin_repair not found in path $PATH)
+ if test "$THIN_REPAIR_CMD" = "thin_repair"; then
+ AC_PATH_TOOL(THIN_REPAIR_CMD, thin_repair)
+ test -z "$THIN_REPAIR_CMD" && {
+ AC_MSG_WARN(thin_repair not found in path $PATH)
+ THIN_REPAIR_CMD=thin_repair
+ THIN_CONFIGURE_WARN=y
+ }
fi
;;
esac
@@ -1774,6 +1789,8 @@ unit-tests/mm/Makefile
])
AC_OUTPUT
+test -n "$THIN_CONFIGURE_WARN" && AC_MSG_WARN([Support for thin provisioning is limited since some thin provisioning tools are missing!])
+
if test x$ODIRECT != xyes; then
AC_MSG_WARN(Warning: O_DIRECT disabled: low-memory pvmove may lock up)
fi