[xen-tools] Re: Outstanding bugs/requests for 3.0?

From: Steve Kemp <steve_at_steve.org.uk>
Date: Fri, 1 Dec 2006 12:56:18 +0000
On Fri, Dec 01, 2006 at 07:45:38AM -0500, Ward Vandewege wrote:

> Effectively, this means that the --memory option given to xen-create-image
> needs to be put in megabytes, always, and any modifier is ignored (unlike
> for --size and --swap).

  Good catch.  This looks like a good change:

    #
    #  The memory size:  Convert Gb -> Mb.
    #
    if ( $EMV{'memory'} =~ /^(\d+)Gb*$/i )
    {
        $ENV{'memory'} = $1 * 1024;
    }

    #
    #  Remove any trailing Mb.
    #
    if ( $ENV{'memory'} =~ /^(\d+)Mb*$/i )
    {
        $ENV{'memory'} = $1;
    }

  I'll commit shortly.

Steve
-- 
http://www.steve.org.uk/
Received on Fri Dec 01 2006 - 12:56:29 GMT

Mailing list overview.