Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Nov 2006 11:38:15 -0500
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        freebsd-emulation@FreeBSD.org
Subject:   Re: [PATCH]: possible fix for the fifoor problem
Message-ID:  <200611071138.16795.jkim@FreeBSD.org>
In-Reply-To: <20061106174033.GA70360@stud.fit.vutbr.cz>
References:  <20061106174033.GA70360@stud.fit.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611071138.16795.jkim>