Date: Thu, 31 Aug 2017 12:36:10 +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-11@freebsd.org Subject: svn commit: r323050 - stable/11/sys/boot/common Message-ID: <201708311236.v7VCaA44013088@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: oleg Date: Thu Aug 31 12:36:09 2017 New Revision: 323050 URL: https://svnweb.freebsd.org/changeset/base/323050 Log: MFC r322628: Fix BSD label partition end sector calculation. Differential Revision: https://reviews.freebsd.org/D12066 Modified: stable/11/sys/boot/common/part.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/boot/common/part.c ============================================================================== --- stable/11/sys/boot/common/part.c Thu Aug 31 12:02:14 2017 (r323049) +++ stable/11/sys/boot/common/part.c Thu Aug 31 12:36:09 2017 (r323050) @@ -486,7 +486,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?201708311236.v7VCaA44013088>