diff options
author | asomers <asomers@FreeBSD.org> | 2013-04-26 19:49:37 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2013-04-26 19:49:37 +0000 |
commit | 2f761a801bd037951c90dbb5521c75ef53954678 (patch) | |
tree | 772938b253a012eada5b3150cda9a0626bed4c52 /sbin | |
parent | 18ab525779c21c1b5eb9274bce1e39f189c50a59 (diff) | |
download | FreeBSD-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.h | 2 |
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 */ |