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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"