From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 26 18:45: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 832171065677 for ; Tue, 26 Feb 2008 18:45:40 +0000 (UTC) (envelope-from martin.laabs@mailbox.tu-dresden.de) Received: from mailout1.zih.tu-dresden.de (mailout1.zih.tu-dresden.de [141.30.67.72]) by mx1.freebsd.org (Postfix) with ESMTP id 3BBA913C465 for ; Tue, 26 Feb 2008 18:45:40 +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 mailout1.zih.tu-dresden.de with esmtp (Exim 4.63) (envelope-from ) id 1JU4o2-0001pr-KY for freebsd-hackers@freebsd.org; Tue, 26 Feb 2008 19:45:38 +0100 Received: from martin (p5B0ED270.dip.t-dialin.net [91.14.210.112]) by server-n (Postfix) with ESMTP id 6FEA3100A08E for ; Tue, 26 Feb 2008 19:45:34 +0100 (CET) To: "freebsd-hackers@freebsd.org" From: "Martin Laabs" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 In-Reply-To: <20080226075102.GE83599@server.vk2pj.dyndns.org> References: <20080225154455.4822e72a@bhuda.mired.org> <20080226075102.GE83599@server.vk2pj.dyndns.org> Content-Transfer-Encoding: 7bit Date: Tue, 26 Feb 2008 19:45:33 +0100 Message-ID: User-Agent: Opera Mail/9.25 (Linux) X-TUD-Virus-Scanned: mailout1.zih.tu-dresden.de Subject: Re: emulate an end-of-media 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: Tue, 26 Feb 2008 18:45:40 -0000 Hi, On Tue, 26 Feb 2008 08:51:02 +0100, Peter Jeremy wrote: > [...] But it also has some gotchas. The > biggest one is that dump needs to be able to write past EOM (so it can > record an end-of-volume block). Just even I tried the following: -create a 50MB filesystem (with md) -put 29MB data on it -create 3 10MB md-devices -dump the 50MB filesystem at the three 10MB devices -restore the file into another, fresh 50MB filesystem Restore reported no error, all files are there and the number of used inodes is the same. Also the md5 checksum above all files does not differ. Since I'm almost sure that the md-devices does not allow to write behind the EOM signal this test would be an equvilalent to the SIGPIPE to SIGEOM thing. (Regardless how I implement this at the end.) So it doesn't seem that dump can handle such an abrupt EOM. This evening I'll try to change dump to interprete SIGPIPE like SIGEOM. Best regards, Martin L.