From owner-freebsd-fs@FreeBSD.ORG Mon Aug 13 20:15:58 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 325AA1065674 for ; Mon, 13 Aug 2012 20:15:58 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B04D68FC1E for ; Mon, 13 Aug 2012 20:15:57 +0000 (UTC) Received: by bkcje9 with SMTP id je9so1619217bkc.13 for ; Mon, 13 Aug 2012 13:15:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=ym2WQ3a9drHIHyruva5wWIK0L5ByAbzeZUiSiBooVEk=; b=V7EYgt+7itNlSRx6RYEJWI8hA4I05Zvwo18nh2IWVLTer7d1zxIHN1B7HGEHP+NHIc SdcJ57oPGvIN+5nhP/r1mmp1Al9q8vT3wTpp7JyWnXhoKYs+iBcY/rxYXyTcBf4jWGNr ROCbiioIR3AwMOH5noyo3u6n9mvWQ+j9ViwIRjJnv3IUibHgv1/muo64MtuF5eR64b8y DjH7oSzpFffYQOP9smZyi8QDOTDuAi8FrfnOz4URP+v+2TSsG9Ky6EULK3S6RDWdFx+e 1MajJFW8+WjR5tSm/Ufn2ogKVQvG8W4HYHKp55bORFx67EbyyJeefkoQdIt8zyDVT1HA uy5A== MIME-Version: 1.0 Received: by 10.204.152.211 with SMTP id h19mr5130054bkw.45.1344888951020; Mon, 13 Aug 2012 13:15:51 -0700 (PDT) Received: by 10.204.172.205 with HTTP; Mon, 13 Aug 2012 13:15:50 -0700 (PDT) In-Reply-To: References: <7BDA02A3-99ED-4F67-9B2D-5AAF1523642E@helenius.fi> Date: Mon, 13 Aug 2012 22:15:50 +0200 Message-ID: From: Olivier Smedts To: Steven Schlansker Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmb3ucBb8qa4dU9sgf1WarQe4hWYSHE+G3XZvTUr5PAP0q8NfDi2fUziuNffpJ6t5cvA2Fh Cc: freebsd-fs@freebsd.org, Petri Helenius Subject: Re: zero deleted blocks X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2012 20:15:58 -0000 2012/8/13 Steven Schlansker : > > On Aug 13, 2012, at 2:27 AM, Olivier Smedts 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 ! -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."