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:
parent
594cc87acf
commit
6db767961b
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user