svn commit: r212878 - stable/7/sys/geom
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Sep 19 21:10:14 UTC 2010
On Sun, Sep 19, 2010 at 07:57:15PM +0000, Alexander Motin wrote:
> - KASSERT(length > 0 && length >= cp->provider->sectorsize &&
> - length <= MAXPHYS, ("g_delete_data(): invalid length %jd",
> - (intmax_t)length));
> + KASSERT(length > 0 && length >= cp->provider->sectorsize,
> + ("g_delete_data(): invalid length %jd", (intmax_t)length));
This check looks a bit strange. Leaving only
'length >= cp->provider->sectorsize' part should be enough.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- 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-stable-7/attachments/20100919/a99fa83d/attachment.pgp
More information about the svn-src-stable-7
mailing list