Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2010 09:44:24 +0100
From:      Vincent Hoffman <vince@unsane.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: sparse image
Message-ID:  <4C2B03E8.8010803@unsane.co.uk>
In-Reply-To: <4C2AD3EF.5020803@comclark.com>
References:  <4C21E163.70003@comclark.com> <4C21E7F8.2050802@unsane.co.uk> <4C2AD3EF.5020803@comclark.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C2B03E8.8010803>