From 9bb2b7f535b94558bb57bb9403d070da6ffdb335 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Thu, 14 Mar 2013 23:03:48 +0000 Subject: Delete requests can be larger than MAXPHYS. --- sbin/hastd/secondary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin') diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c index febdc05b42e6..c0c67c6ee43e 100644 --- a/sbin/hastd/secondary.c +++ b/sbin/hastd/secondary.c @@ -582,7 +582,7 @@ requnpack(struct hast_resource *res, struct hio *hio, struct nv *nv) 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; -- cgit v1.2.3