Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2013 23:03:48 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248294 - head/sbin/hastd
Message-ID:  <201303142303.r2EN3miE056249@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Thu Mar 14 23:03:48 2013
New Revision: 248294
URL: http://svnweb.freebsd.org/changeset/base/248294

Log:
  Delete requests can be larger than MAXPHYS.

Modified:
  head/sbin/hastd/secondary.c

Modified: head/sbin/hastd/secondary.c
==============================================================================
--- head/sbin/hastd/secondary.c	Thu Mar 14 22:57:27 2013	(r248293)
+++ head/sbin/hastd/secondary.c	Thu Mar 14 23:03:48 2013	(r248294)
@@ -582,7 +582,7 @@ requnpack(struct hast_resource *res, str
 			hio->hio_error = EINVAL;
 			goto end;
 		}
-		if (hio->hio_length > MAXPHYS) {
+		if (hio->hio_cmd != HIO_DELETE && hio->hio_length > MAXPHYS) {
 			pjdlog_error("Data length is too large (%ju > %ju).",
 			    (uintmax_t)hio->hio_length, (uintmax_t)MAXPHYS);
 			hio->hio_error = EINVAL;



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