zero deleted blocks

Steven Hartland killing at multiplay.co.uk
Mon Aug 13 20:53:24 UTC 2012


----- Original Message ----- 
From: "Olivier Smedts" <olivier at gid0.org>

> 2012/8/13 Steven Schlansker <stevenschlansker at gmail.com>:
>>
>> On Aug 13, 2012, at 2:27 AM, Olivier Smedts <olivier at gid0.org> wrote:
>>> Did you try a classic "dd if=/dev/zero of=a-file-on-the-pool" ? This
>>> won't give good results if you do this on a filesystem with
>>> compression enabled.
>>
>> ZFS uses copy on write (http://en.wikipedia.org/wiki/ZFS#Copy-on-write_transactional_model) so overwriting with zeroes will 
>> actually allocate new space to hold all the zeroed data and leave the old data mostly untouched.
>
> Only until all the free space is consumed !

Also need to ensure compression isnt turned on and its not an device
that does compression on disk / disk controller such as Sandforce
based SSD's as that could resulting in something other than the
intended behavour. 


================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster at multiplay.co.uk.



More information about the freebsd-fs mailing list