From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:59825 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751460Ab2IJXVJ (ORCPT ); Mon, 10 Sep 2012 19:21:09 -0400 Received: by pbbrr13 with SMTP id rr13so3187685pbb.19 for ; Mon, 10 Sep 2012 16:21:09 -0700 (PDT) Message-ID: <504E75E1.5060304@gmail.com> Date: Tue, 11 Sep 2012 07:21:05 +0800 From: ching MIME-Version: 1.0 To: Liu Bo CC: linux-btrfs@vger.kernel.org Subject: Re: enquiry about defrag References: <504BDCE0.8020407@gmail.com> <504C49F7.2070201@gmail.com> <504C861D.2020009@gmail.com> <504DDAD5.8010908@gmail.com> <504DE6B3.2010900@oracle.com> In-Reply-To: <504DE6B3.2010900@oracle.com> Content-Type: text/plain; charset=UTF-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 09/10/2012 09:10 PM, Liu Bo wrote: > On 09/10/2012 08:19 PM, ching wrote: >> 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? >> > FYI, git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git > >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > may i ask a stupid question, if i remove my "compress-force=lzo" option, will compression disabled for new written data?