[Ovirt-devel] [PATCH node] disallow any partitions being set to 0MB

Ryan Harper ryanh at us.ibm.com
Thu Feb 11 17:33:51 UTC 2010


* Joey Boggs <jboggs at redhat.com> [2010-02-11 10:26]:
> ---
>  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 ]] \

Does this prevent someone setting the SWAP partition to zero?  For
example if someone doesn't want to enable overcommit is there a
requirement for having an active SWAP partition?

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh at us.ibm.com




More information about the ovirt-devel mailing list