atom feed16 messages in org.freebsd.freebsd-archRe: pipe/fifo code merged.
FromSent OnAttachments
Giovanni TrematerraJan 7, 2012 6:35 pm 
John BaldwinJan 9, 2012 5:48 am 
Bruce EvansJan 9, 2012 6:34 am 
Kostik BelousovJan 9, 2012 6:46 am 
Giovanni TrematerraJan 9, 2012 2:27 pm 
Giovanni TrematerraJan 9, 2012 3:19 pm 
Bruce EvansJan 10, 2012 4:03 am 
Giovanni TrematerraJan 10, 2012 3:04 pm 
Giovanni TrematerraJan 10, 2012 3:33 pm 
Giovanni TrematerraJan 10, 2012 4:14 pm 
Giovanni TrematerraJan 12, 2012 12:55 am 
Bruce EvansJan 12, 2012 4:51 am 
Giovanni TrematerraJan 17, 2012 3:42 am 
Jilles TjoelkerJan 28, 2012 3:36 pm 
Bruce EvansJan 29, 2012 3:31 am 
Giovanni TrematerraJan 31, 2012 1:48 pm 
Subject:Re: pipe/fifo code merged.
From:Jilles Tjoelker (jil@stack.nl)
Date:Jan 28, 2012 3:36:49 pm
List:org.freebsd.freebsd-arch

On Tue, Jan 17, 2012 at 12:43:19PM +0100, Giovanni Trematerra wrote:

doesn't introduce any further regressions while it fixes

- style bugs you pointed out. - pipe_stat now use underlying filesystem information for pipes. - comment about pipeinfo was intended for. - race into pipe_poll (look at fifo_iseof line).

I tested this version of the patch and found that it breaks opening a fifo with O_TRUNC: it fails with [EINVAL]. This appears to be pipe_truncate()'s doing. Previously, truncate requests went to the vnode.

In particular, this happens when opening a fifo for writing using sh(1)'s > (unless 'set -C' is in effect) or >| redirection operators. The open properly blocks until a reader arrives but then fails with [EINVAL]. Several tests in tools/regression/bin/sh do this.