Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 May 2011 14:34:51 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        "Andrey V. Elsukov" <ae@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r221645 - head/sys/geom/part
Message-ID:  <20110508113451.GY48734@deviant.kiev.zoral.com.ua>
In-Reply-To: <201105081120.p48BKRB7043544@svn.freebsd.org>
References:  <201105081120.p48BKRB7043544@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--xfLSUI6RYrtWMjtK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
>=20
> Log:
>   Limit number of sectors that can be addressed.
>  =20
>   MFC after:	1 week
>=20
> Modified:
>   head/sys/geom/part/g_part_pc98.c
>=20
> Modified: head/sys/geom/part/g_part_pc98.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- 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 *
> =20
>  	cyl =3D basetable->gpt_heads * basetable->gpt_sectors;
> =20
> -	msize =3D MIN(pp->mediasize / SECSIZE, 0xffffffff);
> +	msize =3D MIN(pp->mediasize / SECSIZE, UINT_MAX);
Shouldn't this be UINT32_MAX (consistently) ?

--xfLSUI6RYrtWMjtK
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk3Gf9sACgkQC3+MBN1Mb4hnBgCfUhhIp0+nLXWtYSyWTAIOGstW
eJgAoNgNiGhzr/h/ve1gIzE0FZadzrg1
=H1z7
-----END PGP SIGNATURE-----

--xfLSUI6RYrtWMjtK--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110508113451.GY48734>