From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 1 20:11:40 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 915A6106566B for ; Sat, 1 Mar 2008 20:11:40 +0000 (UTC) (envelope-from martin.laabs@mailbox.tu-dresden.de) Received: from mailout2.zih.tu-dresden.de (mailout2.zih.tu-dresden.de [141.30.67.73]) by mx1.freebsd.org (Postfix) with ESMTP id 4F70C8FC16 for ; Sat, 1 Mar 2008 20:11:39 +0000 (UTC) (envelope-from martin.laabs@mailbox.tu-dresden.de) Received: from rmc67-31.zih.tu-dresden.de ([141.30.67.31] helo=server-n) by mailout2.zih.tu-dresden.de with esmtp (Exim 4.63) (envelope-from ) id 1JVY3S-0002ax-My for freebsd-hackers@freebsd.org; Sat, 01 Mar 2008 21:11:38 +0100 Received: from martin (p5B0EEEFB.dip.t-dialin.net [91.14.238.251]) by server-n (Postfix) with ESMTP id 54682100A091 for ; Sat, 1 Mar 2008 21:11:34 +0100 (CET) Date: Sat, 01 Mar 2008 21:11:33 +0100 To: "freebsd-hackers@freebsd.org" From: "Martin Laabs" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.25 (Linux) X-TUD-Virus-Scanned: mailout2.zih.tu-dresden.de Subject: multi volume dump with gzip/crypt - solved X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2008 20:11:40 -0000 Hi, I solved the dump problem in a not very clean way. First I changed dumps behaviour to ignore the SIGPIPE signal when the -P and -a option is given. The problem with occured than was the loss of data because of the race condition between "write date to pipe" and "receive SIGPIPE". I solved that problem with a script that takes the data from the pipe of dump, compress it and sends a dedicated SIGPIPE to the three dump processes when the output volume is nealy full. After that it flushs the rest out of the pipe to avoid data loss. Greetings, Martin L.