Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread David Xu
The following reply was made to PR kern/170203; it has been noted by GNATS. From: David Xu To: Bruce Evans Cc: davi...@freebsd.org, Garrett Cooper , freebsd-bugs@FreeBSD.org, freebsd-gnats-sub...@freebsd.org Subject: Re: kern/170203: [kern] piped dd's don't behave sanely wh

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread David Xu
On 2012/7/27 19:08, Bruce Evans wrote: On Fri, 27 Jul 2012, David Xu wrote: On 2012/7/27 10:07, Bruce Evans wrote: I think it's working almost as expected. Large blocks give non-atomic I/O, so the reader sees small blocks, then EOF when it gets ahead of the writer. This always happens witho

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread Bruce Evans
The following reply was made to PR kern/170203; it has been noted by GNATS. From: Bruce Evans To: davi...@freebsd.org Cc: Bruce Evans , Garrett Cooper , freebsd-bugs@FreeBSD.org, freebsd-gnats-sub...@freebsd.org Subject: Re: kern/170203: [kern] piped dd's don't behave sanely wh

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread Bruce Evans
On Fri, 27 Jul 2012, David Xu wrote: On 2012/7/27 10:07, Bruce Evans wrote: I think it's working almost as expected. Large blocks give non-atomic I/O, so the reader sees small blocks, then EOF when it gets ahead of the writer. This always happens without SMP. Not is a bug (debugged below).

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread David Xu
The following reply was made to PR kern/170203; it has been noted by GNATS. From: David Xu To: Bruce Evans Cc: Garrett Cooper , freebsd-bugs@FreeBSD.org, freebsd-gnats-sub...@freebsd.org Subject: Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread David Xu
On 2012/7/27 10:07, Bruce Evans wrote: On Thu, 26 Jul 2012, Garrett Cooper wrote: Description: Creating a fifo and then dd'ing across the fifo using /dev/zero doesn't seem to yield the behavior one would expect to have; dd should either exit thanks to SIGPIPE being sent or the count being co

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-26 Thread Bruce Evans
The following reply was made to PR kern/170203; it has been noted by GNATS. From: Bruce Evans To: Garrett Cooper Cc: freebsd-gnats-sub...@freebsd.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo Date: Fri, 27 Jul

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-26 Thread Bruce Evans
On Thu, 26 Jul 2012, Garrett Cooper wrote: Description: Creating a fifo and then dd'ing across the fifo using /dev/zero doesn't seem to yield the behavior one would expect to have; dd should either exit thanks to SIGPIPE being sent or the count being completed. Furthermore, the count is bogu

kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-26 Thread Garrett Cooper
>Number: 170203 >Category: kern >Synopsis: [kern] piped dd's don't behave sanely when dealing with a fifo >Confidential: no >Severity: non-critical >Priority: low >Responsible:freebsd-bugs >State: open >Quarter: >Keywords: >Date-Require