1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

fixed div bug in calculation of end in calculate_extent_count

This commit is contained in:
Heinz Mauelshagen 2002-01-29 15:43:04 +00:00
parent 594cc87acf
commit 6db767961b

View File

@ -140,8 +140,8 @@ int calculate_extent_count(struct physical_volume *pv)
do { do {
pvd->pe_total--; pvd->pe_total--;
_calc_simple_layout(pvd); _calc_simple_layout(pvd);
end = ((pvd->pe_on_disk.base + pvd->pe_on_disk.size) / end = ((pvd->pe_on_disk.base + pvd->pe_on_disk.size + \
SECTOR_SIZE); SECTOR_SIZE - 1) / SECTOR_SIZE);
pvd->pe_start = _round_up(end, PE_ALIGN); pvd->pe_start = _round_up(end, PE_ALIGN);