From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pz0-f46.google.com ([209.85.210.46]:62832 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757566Ab2IJMTh (ORCPT ); Mon, 10 Sep 2012 08:19:37 -0400 Received: by dady13 with SMTP id y13so1355343dad.19 for ; Mon, 10 Sep 2012 05:19:37 -0700 (PDT) Message-ID: <504DDAD5.8010908@gmail.com> Date: Mon, 10 Sep 2012 20:19:33 +0800 From: ching MIME-Version: 1.0 To: "Fajar A. Nugraha" CC: linux-btrfs@vger.kernel.org Subject: Re: enquiry about defrag References: <504BDCE0.8020407@gmail.com> <504C49F7.2070201@gmail.com> <504C861D.2020009@gmail.com> In-Reply-To: <504C861D.2020009@gmail.com> Content-Type: text/plain; charset=UTF-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 09/09/2012 08:05 PM, ching wrote: > On 09/09/2012 05:11 PM, Fajar A. Nugraha wrote: >> On Sun, Sep 9, 2012 at 2:49 PM, ching wrote: >>> On 09/09/2012 08:30 AM, Jan Steffens wrote: >>>> On Sun, Sep 9, 2012 at 2:03 AM, ching wrote: >>>>> 2. Is there any command for the fragmentation status of a file/dir ? e.g. fragment size, number of fragments. >>>> Use the "filefrag" command, part of e2fsprogs. >>>> >>> my image is a 16G sparse file, after defragment, it still has 101387 extents, is it normal? >> Is compression enabled? If so, yes, it's normal. >> > compression with lzo. > > thanks. i will retry with compression disabled when 3.6 is stable. i just realize that it is possible to control compression per file by file attribute http://radudi.com/index.php/2011/08/31/using-btrfs-per-file-and-per-directory-compression/ when i try to follow example above, no file attribute is shown (my mount option is rw,noatime,compress-force=lzo,space_cache,inode_cache) $lsattr -V Linux.raw_image lsattr 1.42.5 (29-Jul-2012) ---------------- Linux.raw_image is there any official resource/web page for control compression per file by file attribute?