[xen-tools] Re: Outstanding bugs/requests for 3.0?
Steve Kemp
steve at steve.org.uk
Fri Dec 1 13:56:18 CET 2006
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/
More information about the xen-tools-discuss
mailing list