From owner-freebsd-fs@FreeBSD.ORG Mon Aug 19 17:23:56 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 266B1EDA; Mon, 19 Aug 2013 17:23:56 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-vc0-x235.google.com (mail-vc0-x235.google.com [IPv6:2607:f8b0:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C8DD42C25; Mon, 19 Aug 2013 17:23:55 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id hz10so3325420vcb.12 for ; Mon, 19 Aug 2013 10:23:54 -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=1tBSs4jHB7IY7wfXbt46Nq4VFrP1M6xVQjKpFJ65afs=; b=j9M7B8s8jTg4fytP/yPIu06/Zin5ayazZCry5Bg/0VTJR6n0+iPFvpaJTisfQKal7T TQAvmRVWCgs0cRlDM/tgpSP8bCtYw7NfqBa6i1IWJB6xg0quOBQk5vlMV3t2+SvqQlrq KvRHwEwGBtP+RgKVHT616avtsjUxtvRaYu5bQLok3kLhotmo1FoXNXv1BqMtDw0Ts2K1 CQZ089GWmwq1QIE4cHa7/my9h0plL+0rrd95PzTPAVH6v7U15j9dChgBGqgyHEiBALb0 46bqi5e8dGByo6Ne4TF5k4P7IUSnoC5jlU1EKgA8YkaJoq8Ewtk5IjU942S0oq5fZgTD b1lQ== MIME-Version: 1.0 X-Received: by 10.220.140.69 with SMTP id h5mr6668256vcu.0.1376933034685; Mon, 19 Aug 2013 10:23:54 -0700 (PDT) Received: by 10.58.249.1 with HTTP; Mon, 19 Aug 2013 10:23:54 -0700 (PDT) In-Reply-To: References: Date: Mon, 19 Aug 2013 19:23:54 +0200 Message-ID: Subject: Re: Upgrading ZFS compression From: Johan Hendriks To: Ivan Voras Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-fs 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: Mon, 19 Aug 2013 17:23:56 -0000 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