From owner-freebsd-fs@FreeBSD.ORG Tue Aug 20 07:22:34 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 65E921B8; Tue, 20 Aug 2013 07:22:34 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CAFEA289A; Tue, 20 Aug 2013 07:22:33 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id y10so50318wgg.4 for ; Tue, 20 Aug 2013 00:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qdNDP12nF/xdKt5w3ZoO22U9adofLASNn0Gubt3dsjI=; b=jEOzAElmDCjRotn0vzElWy59u8Oi7W4dVyfUGwL60SiP43QtbODw1nb3tjXSzPqMUr F8bTsuwTsUq3bHIrbNwuvCLkc4hy0zQ/x42EkaKADk6RipfxYdqS8sfJoNUtkMK9sz12 jF9xTlv7ovIwb4B7dbPw+qUhQVlCqgUNC+DunMPhns1lnX+VWC1oVY7yl6aPQNgAxSTe p8iIiQSeP8wx4omPcOZcSbTJCykeBsTQUBF6lQWH57o1umXpfJrLWebK1U703CpniZSq 5HwhixEdeEjcMhLSdiiVR4kqZ9c00ni9kpOv7bcohW+miFjEuAfbcrbjtEkv4sI3BYc7 x1dg== MIME-Version: 1.0 X-Received: by 10.180.93.136 with SMTP id cu8mr166709wib.1.1376983352101; Tue, 20 Aug 2013 00:22:32 -0700 (PDT) Received: by 10.216.67.196 with HTTP; Tue, 20 Aug 2013 00:22:32 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Aug 2013 08:22:32 +0100 Message-ID: Subject: Re: Upgrading ZFS compression From: krad To: Johan Hendriks Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-fs , Ivan Voras X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Aug 2013 07:22:34 -0000 correct, same when you enable dedup as well, only newly writen blocks get the changes. So its possible a file of multiple blocks may have multiple compression algorithms applied to it. What I have done in the past is rsync the tree to a new location, then rename the trees and delete the original. This isn't always releasable though On 19 August 2013 18:23, Johan Hendriks wrote: > Op maandag 19 augustus 2013 schreef Ivan Voras (ivoras@freebsd.org): > > > Hello, > > > > Just a quick question: if I have a file system with LZJB, write a file > > on it so it gets compressed, then change the compression setting on the > > file system to LZ4, will new random writes to the file use the new > > compression algorithm? > > > > By looking at the data structures (dnode_phys_t) it looks like the > > compression is set per-file object, so no. > > > > OTOH, new files on the file system will pick up new compression > > settings, right? > > > As far as i know all new files put on the dataset will be compressed using > the new compression type. > > Regards > Johan > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >