Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2017 08:08:23 +0100
From:      Bob Eager <rde@tavi.co.uk>
To:        freebsd-fs@freebsd.org
Subject:   Re: How to create holes in files ?
Message-ID:  <20170929080823.175d6abc@raksha.tavi.co.uk>
In-Reply-To: <454261D6-0061-4DB9-8184-BDD7061870FB@gmail.com>
References:  <12ed413d-00d1-4182-bdd5-0e5230d46f01@email.android.com> <4D304428-E4AF-45D4-AB2E-D4B73A7FEE87@gmail.com> <1506664468.7204.37.camel@inparadise.se> <454261D6-0061-4DB9-8184-BDD7061870FB@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 29 Sep 2017 08:26:13 +0200
Ben RUBSON <ben.rubson@gmail.com> wrote:

> Unfortunately here storage blocks will be set/written to 0,
> they will not be freed/recovered, a file hole will not be created.

You need to add:  conv=sparse    to the dd command to turn zero blocks
into unallocated blocks.



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