From owner-freebsd-emulation@FreeBSD.ORG Tue Nov 7 16:38:43 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C08216A492 for ; Tue, 7 Nov 2006 16:38:43 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id D51C443D5F for ; Tue, 7 Nov 2006 16:38:36 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id kA7GcTsQ039770; Tue, 7 Nov 2006 11:38:29 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Tue, 7 Nov 2006 11:38:15 -0500 User-Agent: KMail/1.6.2 References: <20061106174033.GA70360@stud.fit.vutbr.cz> In-Reply-To: <20061106174033.GA70360@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200611071138.16795.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88/2172/Tue Nov 7 09:04:48 2006 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Subject: Re: [PATCH]: possible fix for the fifoor problem X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Nov 2006 16:38:43 -0000 On Monday 06 November 2006 12:40 pm, Divacky Roman wrote: > pls test > www.stud.fit.vutbr.cz/~xdivac02/linux-fifoor.patch > > and tell me if that helps you with fifoor affected tests (dup05, > select03) This patch does not work nor fix the problem. In fact, I spent some time to tackle this problem. dup05 passes the test but when it attempts to clean up temporary directory, the fifo is opened with O_RDONLY in blocking mode. That is why it is blocked forever because there is no writer for the fifo. Ironically, this is not LTP's fault, i.e., translate_path_major_minor() in linux_stats.c calls kern_open() with O_RDONLY in blocking mode. Whenever we use this function from linux_*stat*(), it is blocked forever. If you change the function to use (O_RDONLY | O_NONBLOCK), this test passes normally. FYI... Jung-uk Kim