Fix math error in the computation of the free space after the last partition
on a disk. This resulted in one sector always remaining free at the end. PR: bin/228322 Submitted by: Rikiya Yonemoto MFC after: 2 weeks
This commit is contained in:
parent
70398c2f86
commit
8c7de243f4
@ -856,7 +856,7 @@ gpart_max_free(struct ggeom *geom, intmax_t *npartstart)
|
||||
}
|
||||
|
||||
if (end - lastend > maxsize) {
|
||||
maxsize = end - lastend - 1;
|
||||
maxsize = end - lastend;
|
||||
maxstart = lastend + 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user