From owner-svn-src-stable-9@FreeBSD.ORG Fri May 10 16:48:22 2013 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 21BC1BBC; Fri, 10 May 2013 16:48:22 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 145668A2; Fri, 10 May 2013 16:48:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4AGmLOi058897; Fri, 10 May 2013 16:48:21 GMT (envelope-from asomers@svn.freebsd.org) Received: (from asomers@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4AGmLId058896; Fri, 10 May 2013 16:48:21 GMT (envelope-from asomers@svn.freebsd.org) Message-Id: <201305101648.r4AGmLId058896@svn.freebsd.org> From: Alan Somers Date: Fri, 10 May 2013 16:48:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r250461 - stable/9/sbin/devd X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 May 2013 16:48:22 -0000 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 */