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:
Nathan Whitehorn 2018-05-18 17:43:15 +00:00
parent 70398c2f86
commit 8c7de243f4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333803

View File

@ -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;
}