[Ovirt-devel] [PATCH node] disallow any partitions being set to 0MB
Mike Burns
mburns at redhat.com
Thu Feb 11 16:35:49 UTC 2010
On Thu, 2010-02-11 at 11:19 -0500, Joey Boggs wrote:
> ---
> 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
If we're not supporting 0, we should also remove this:
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index be22ef6..1a50ea9 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -238,8 +238,7 @@ do_configure()
fi
printf "\n\nPlease configure storage partitions.\n\n"
printf "* Enter partition sizes in MB.\n"
- printf "* A value of 0 indicates the partition should be
disabled.\n"
- printf "* If the partition is enabled, it will have a minimum valid
size.\n
+ printf "* All partitions have a minimum valid size.\n"
printf "* Size remaining value is approximate due to cylinder
rounding\n"
printf " during partitioning.\n"
printf "* For the Data partition, a size of -1 indicates that the
\n"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20100211/6745f3ce/attachment.htm>
More information about the ovirt-devel
mailing list