Date: Sun, 19 Sep 2010 22:48:47 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Alexander Motin <mav@FreeBSD.org> Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-7@freebsd.org Subject: Re: svn commit: r212878 - stable/7/sys/geom Message-ID: <20100919204847.GA21347@garage.freebsd.pl> In-Reply-To: <201009191957.o8JJvFNX014126@svn.freebsd.org> References: <201009191957.o8JJvFNX014126@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 19, 2010 at 07:57:15PM +0000, Alexander Motin wrote: > - KASSERT(length > 0 && length >=3D cp->provider->sectorsize && > - length <=3D MAXPHYS, ("g_delete_data(): invalid length %jd", > - (intmax_t)length)); > + KASSERT(length > 0 && length >=3D cp->provider->sectorsize, > + ("g_delete_data(): invalid length %jd", (intmax_t)length)); This check looks a bit strange. Leaving only 'length >=3D cp->provider->sectorsize' part should be enough. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkyWdy8ACgkQForvXbEpPzR8AACcC9Wz829XIgQQzm6qkbek5oN+ lokAnjH/lEGEgQ1bCqDCXgmFInsHkg5I =rN7L -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100919204847.GA21347>