From owner-freebsd-questions@FreeBSD.ORG Wed Jun 30 08:44:27 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A01D106566C for ; Wed, 30 Jun 2010 08:44:27 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id D4B188FC19 for ; Wed, 30 Jun 2010 08:44:26 +0000 (UTC) Received: from vhoffman.lon.namesco.net (2.67-246-213.ippool.namesco.net [213.246.67.2]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id o5U8iO4u028164 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 30 Jun 2010 09:44:25 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4C2B03E8.8010803@unsane.co.uk> Date: Wed, 30 Jun 2010 09:44:24 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C21E163.70003@comclark.com> <4C21E7F8.2050802@unsane.co.uk> <4C2AD3EF.5020803@comclark.com> In-Reply-To: <4C2AD3EF.5020803@comclark.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: sparse image X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 08:44:27 -0000 On 30/06/2010 06:19, Aiza wrote: > Thanks Vince this was very helpful. > I was able to create a sparse image jail, but when I used cpio to > duplicate the sparse file to other jails I lost the sparseness of the > file. Is there a way to copy a sparse file and keep it intact? > I havent tested but tar has -S (x mode only) Extract files as sparse files. For every block on disk, check first if it contains only NULL bytes and seek over it otherwise. This works similiar to the conv=sparse option of dd. which might work. Vince > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"