<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.2">
</HEAD>
<BODY>
On Thu, 2010-02-11 at 11:19 -0500, Joey Boggs wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
---
scripts/ovirt-config-storage | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index 9c3f773..10a4066 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -291,7 +291,7 @@ EOF
printf "Aborting"
return
elif [[ $mb_input =~ ^-*[0-9]+$ ]]; then
- if [[ $mb_input -ge $min_size || $mb_input =~ $part_regexp ]] \
+ if [[ $mb_input -ge $min_size || $mb_input =~ $part_regexp && $mb_input -ne 0 ]] \
&& [[ $mb_input -le $space_left ]] ; then
eval "$size_var=$mb_input"
size_used=$mb_input
</PRE>
</BLOCKQUOTE>
<BR>
If we're not supporting 0, we should also remove this:<BR>
<BR>
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage<BR>
index be22ef6..1a50ea9 100755<BR>
--- a/scripts/ovirt-config-storage<BR>
+++ b/scripts/ovirt-config-storage<BR>
@@ -238,8 +238,7 @@ do_configure()<BR>
fi<BR>
printf "\n\nPlease configure storage partitions.\n\n"<BR>
printf "* Enter partition sizes in MB.\n"<BR>
- printf "* A value of 0 indicates the partition should be disabled.\n"<BR>
- printf "* If the partition is enabled, it will have a minimum valid size.\n<BR>
+ printf "* All partitions have a minimum valid size.\n"<BR>
printf "* Size remaining value is approximate due to cylinder rounding\n"<BR>
printf " during partitioning.\n"<BR>
printf "* For the Data partition, a size of -1 indicates that the\n"<BR>
<BR>
<BR>
</BODY>
</HTML>