Commit 4f32d9c0 authored by Mike Hibler's avatar Mike Hibler

Deal with LVM size round-up when verifying size of blockstore.

parent c277d1b1
......@@ -806,10 +806,16 @@ sub os_check_storage_slice($$)
warn("*** $lv: actual type ($atype) != expected type ($devtype)\n");
return -1;
}
# ditto for size, unless this is the SYSVOL where we ignore user size
#
# Ditto for size, unless this is the SYSVOL where we ignore user size
# or if the size was not specified.
#
# XXX Note that the size of the volume may be rounded up from what we
# asked for, hopefully not more than 1 MiB!
#
my $asize = $ginfo->{$dev}->{'size'};
if ($bsid ne "SYSVOL" && $devsize && $asize != $devsize) {
if ($bsid ne "SYSVOL" && $devsize &&
!($asize == $devsize || $asize == $devsize+1)) {
warn("*** $lv: actual size ($asize) != expected size ($devsize)\n");
return -1;
}
......
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