summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-03-14 23:03:48 +0000
committerpjd <pjd@FreeBSD.org>2013-03-14 23:03:48 +0000
commit5f4ba049f3af4ababfbb5158ca530215cb0eae0c (patch)
treee0b421ec15ea73359f2f6708d71a3da4c1c8b6d6 /sbin/hastd
parent1c72daa7546cfa6bfefe87887a4edd9aa1e66ca8 (diff)
downloadFreeBSD-src-5f4ba049f3af4ababfbb5158ca530215cb0eae0c.zip
FreeBSD-src-5f4ba049f3af4ababfbb5158ca530215cb0eae0c.tar.gz
Delete requests can be larger than MAXPHYS.
Diffstat (limited to 'sbin/hastd')
-rw-r--r--sbin/hastd/secondary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c
index febdc05..c0c67c6 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;
OpenPOWER on IntegriCloud