Ignore:
Timestamp:
Feb 17, 2009, 5:01:23 AM (16 years ago)
Author:
andersk
Message:

Don't confuse {KB, MB, GB} with {KiB, MiB, GiB}.

Location:
trunk/packages/invirt-autoinstaller
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-autoinstaller/common/usr/sbin/invirt-create-image

    r1497 r2161  
    33# "arguments" come in environment:
    44#  TARGET a device filename
    5 #  FSSIZE the desired filesystem size in megabytes (rest will be swap)
     5#  FSSIZE the desired filesystem size in mebibytes (rest will be swap)
    66#  ARCH, DIST, MIRROR
    77#  HOSTNAME, IP
  • trunk/packages/invirt-autoinstaller/debian/changelog

    r2128 r2161  
     1invirt-autoinstaller (0.0.14) jaunty; urgency=low
     2
     3  * Don't confuse MB with MiB.
     4
     5 -- Anders Kaseorg <andersk@mit.edu>  Tue, 17 Feb 2009 04:56:38 -0500
     6
    17invirt-autoinstaller (0.0.13) unstable; urgency=low
    28
  • trunk/packages/invirt-autoinstaller/host/usr/sbin/invirt-install

    r1497 r2161  
    1313export DIST="$3"
    1414export MIRROR="$4"
    15 export FSSIZE="$5"    # in megabytes
    16 SWAPSIZE="$6"  # in megabytes
     15export FSSIZE="$5"    # in mebibytes
     16SWAPSIZE="$6"  # in mebibytes
    1717export IP="$7"
    1818
     
    2020VGNAME=xenvg
    2121
    22 #LVSIZE=`lvs --noheadings --units M --nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'`
     22#LVSIZE=`lvs --noheadings --units m --nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'`
    2323
    2424if [ -z "$IP" ]; then
     
    2626fi
    2727
    28 /sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))M -n "${NAME}_hda" $VGNAME
     28/sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))m -n "${NAME}_hda" $VGNAME
    2929
    3030export TARGET=/dev/mapper/xenvg-"$(echo "${NAME}_hda" | sed -e 's/-/--/g')"
Note: See TracChangeset for help on using the changeset viewer.