From owner-freebsd-current@FreeBSD.ORG Tue Aug 10 06:40:21 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86C411065675; Tue, 10 Aug 2010 06:40:21 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 3B8A58FC13; Tue, 10 Aug 2010 06:40:20 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1OihrF-0007EF-Ei; Tue, 10 Aug 2010 08:58:41 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Gabor Kovesdan In-reply-to: <4C60880F.4030308@FreeBSD.org> References: <20100809193420.GA11713@gpr.nnz-home.ru> <4C60880F.4030308@FreeBSD.org> Comments: In-reply-to Gabor Kovesdan message dated "Tue, 10 Aug 2010 00:58:23 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 10 Aug 2010 08:58:41 +0300 From: Daniel Braniss Message-ID: Cc: Gennady Proskurin , freebsd-current@freebsd.org Subject: Re: read() on dirs - grep X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 06:40:21 -0000 > Em 2010.08.09. 21:34, Gennady Proskurin escreveu: > > I see misbehaviour of new bsd grep in freebsd on tmpfs when grepping dirs. > > For example (on tmpfs /tmp): > > > > mkdir /tmp/qwe > > grep something /tmp/qwe > > (grep hangs) > > > Thank you for the report, I'm already aware of the issue and preparing a > fix for it. > just in case this is the same but different :-) if grep hits an NFS mounted dir it goes into a loop: truss grep -l '^# PROVIDE:' /cs/share/etc/rc.d/* ... read(2,0x800c5e000,4096) ERR#21 'Is a directory' ... cheers, danny