Date: Thu, 31 Aug 2017 13:32:01 +0000 (UTC) From: Oleg Bulyzhin <oleg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r323052 - stable/10/sys/boot/common Message-ID: <201708311332.v7VDW1k7037477@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708311332.v7VDW1k7037477>