Commit c1c60ef8 authored by Mike Hibler's avatar Mike Hibler
Browse files

Round off LVSIZE before we store it in the metadata.

Cuz I'm anal...
parent 5595432e
......@@ -3259,8 +3259,8 @@ sub downloadOneImage($$$)
$ssize = 512 if (!defined($ssize));
$raref->{'LVSIZE'} =
(($raref->{'IMAGEHIGH'} - $raref->{'IMAGELOW'} + 1) /
(1024 / $ssize));
int(($raref->{'IMAGEHIGH'} - $raref->{'IMAGELOW'} + 1) /
(1024 / $ssize) + 0.5);
}
}
if (lvmCreateVolume($lvname, "${lv_size}m", ALLOC_PREFERNOPOOL())) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment