From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 5 14:50:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B55B106566B for ; Mon, 5 Dec 2011 14:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5B1AA8FC15 for ; Mon, 5 Dec 2011 14:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pB5EoB37088612 for ; Mon, 5 Dec 2011 14:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pB5EoB4c088611; Mon, 5 Dec 2011 14:50:11 GMT (envelope-from gnats) Date: Mon, 5 Dec 2011 14:50:11 GMT Message-Id: <201112051450.pB5EoB4c088611@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jaakko Heinonen Cc: Subject: Re: kern/163076: It is not possible to read in chunks from linprocfs and procfs. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jaakko Heinonen List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 14:50:11 -0000 The following reply was made to PR kern/163076; it has been noted by GNATS. From: Jaakko Heinonen To: Petr Salinger Cc: bug-followup@FreeBSD.org, phk@FreeBSD.org Subject: Re: kern/163076: It is not possible to read in chunks from linprocfs and procfs. Date: Mon, 5 Dec 2011 16:49:47 +0200 Hi, On 2011-12-05, Petr Salinger wrote: > It is not possible to read in chunks from linprocfs and procfs. > It is a regression against stable-8. > I suspect it is due to changes of sbuf implementation between 8 and 9. Yes, r222004 changed sbuf_finish() to not clear s->s_error which causes the regression. I am not sure if we should blame r222004 or the pseudofs code. I have Cc'd the committer of r222004. > Some files are rather big (over 4KB) and it is really standard to read them in blocks. > >How-To-Repeat: > "dd if=$FILE bs=1", with FILE any file in procfs or linprocfs > The result is empty output. > > Tried with FILE /proc/version from linprocfs > and /proc/curproc/map from procfs. > > For more details see Debian GNU/kFreeBSD bug report > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650667 -- Jaakko