svn commit: r250461 - stable/9/sbin/devd

Alan Somers asomers at FreeBSD.org
Fri May 10 16:48:22 UTC 2013


Author: asomers
Date: Fri May 10 16:48:21 2013
New Revision: 250461
URL: http://svnweb.freebsd.org/changeset/base/250461

Log:
  MFC r249951
  
  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.
  
  Approved by:	ken (mentor)

Modified:
  stable/9/sbin/devd/devd.h
Directory Properties:
  stable/9/sbin/devd/   (props changed)

Modified: stable/9/sbin/devd/devd.h
==============================================================================
--- stable/9/sbin/devd/devd.h	Fri May 10 16:41:26 2013	(r250460)
+++ stable/9/sbin/devd/devd.h	Fri May 10 16:48:21 2013	(r250461)
@@ -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 */


More information about the svn-src-stable-9 mailing list