svn commit: r221645 - head/sys/geom/part
Kostik Belousov
kostikbel at gmail.com
Sun May 8 11:34:59 UTC 2011
On Sun, May 08, 2011 at 11:20:27AM +0000, Andrey V. Elsukov wrote:
> Author: ae
> Date: Sun May 8 11:20:27 2011
> New Revision: 221645
> URL: http://svn.freebsd.org/changeset/base/221645
>
> Log:
> Limit number of sectors that can be addressed.
>
> MFC after: 1 week
>
> Modified:
> head/sys/geom/part/g_part_pc98.c
>
> Modified: head/sys/geom/part/g_part_pc98.c
> ==============================================================================
> --- head/sys/geom/part/g_part_pc98.c Sun May 8 11:16:17 2011 (r221644)
> +++ head/sys/geom/part/g_part_pc98.c Sun May 8 11:20:27 2011 (r221645)
> @@ -261,7 +261,7 @@ g_part_pc98_create(struct g_part_table *
>
> cyl = basetable->gpt_heads * basetable->gpt_sectors;
>
> - msize = MIN(pp->mediasize / SECSIZE, 0xffffffff);
> + msize = MIN(pp->mediasize / SECSIZE, UINT_MAX);
Shouldn't this be UINT32_MAX (consistently) ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20110508/1d1868e4/attachment.pgp
More information about the svn-src-head
mailing list