summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2013-04-26 19:49:37 +0000
committerasomers <asomers@FreeBSD.org>2013-04-26 19:49:37 +0000
commit2f761a801bd037951c90dbb5521c75ef53954678 (patch)
tree772938b253a012eada5b3150cda9a0626bed4c52 /sbin
parent18ab525779c21c1b5eb9274bce1e39f189c50a59 (diff)
downloadFreeBSD-src-2f761a801bd037951c90dbb5521c75ef53954678.zip
FreeBSD-src-2f761a801bd037951c90dbb5521c75ef53954678.tar.gz
According to devctl(4), clients must read events whole; they may not
piece them together from multiple reads(). It's as if /dev/devctl is a datagram device instead of a stream device. However, devd's internal buffer was too small (1025 bytes) to read an entire ereport.fs.zfs.checksum event (variable, up to ~1300 bytes). This commit enlarges the buffer to 8k. Reviewed by: imp Approved by: ken (mentor) MFC after: 2 weeks
Diffstat (limited to 'sbin')
-rw-r--r--sbin/devd/devd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/devd/devd.h b/sbin/devd/devd.h
index a8d113b..becfe82 100644
--- a/sbin/devd/devd.h
+++ b/sbin/devd/devd.h
@@ -53,6 +53,6 @@ int yyparse(void);
__END_DECLS
#define PATH_DEVCTL "/dev/devctl"
-#define DEVCTL_MAXBUF 1025
+#define DEVCTL_MAXBUF 8192
#endif /* DEVD_H */
OpenPOWER on IntegriCloud