Author: oleg Date: Thu Aug 31 13:32:01 2017 New Revision: 323052 URL: https://svnweb.freebsd.org/changeset/base/323052
Log: MFC r322628: Fix BSD label partition end sector calculation. Approved by: re (marius) Differential Revision: https://reviews.freebsd.org/D12066 Modified: stable/10/sys/boot/common/part.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/boot/common/part.c ============================================================================== --- stable/10/sys/boot/common/part.c Thu Aug 31 13:02:17 2017 (r323051) +++ stable/10/sys/boot/common/part.c Thu Aug 31 13:32:01 2017 (r323052) @@ -483,7 +483,7 @@ ptable_bsdread(struct ptable *table, void *dev, diskre break; entry->part.start = le32toh(part->p_offset) - raw_offset; entry->part.end = entry->part.start + - le32toh(part->p_size) + 1; + le32toh(part->p_size) - 1; entry->part.type = bsd_parttype(part->p_fstype); entry->part.index = i; /* starts from zero */ entry->type.bsd = part->p_fstype; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"