From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pz0-f46.google.com ([209.85.210.46]:55999 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757924Ab2IKLNB (ORCPT ); Tue, 11 Sep 2012 07:13:01 -0400 Received: by dady13 with SMTP id y13so248745dad.19 for ; Tue, 11 Sep 2012 04:13:01 -0700 (PDT) Message-ID: <504F1CBA.6030201@gmail.com> Date: Tue, 11 Sep 2012 19:12:58 +0800 From: ching MIME-Version: 1.0 To: linux-btrfs@vger.kernel.org Subject: Re: enquiry about defrag References: <504BDCE0.8020407@gmail.com> In-Reply-To: <504BDCE0.8020407@gmail.com> Content-Type: text/plain; charset=UTF-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 09/09/2012 08:03 AM, ching wrote: > Hi all, > > i am new on btrfs, i am testing KVM on btrfs (host: kernel x86-64 3.5.3), the performance is reasonable. > > I have two question on defrag, can someone help me? > > 1. According to btrfs wiki, defragment a COW file will produce two unrelated files. > > Does it apply to the "autodefrag" mount option? > > 2. Is there any command for the fragmentation status of a file/dir ? e.g. fragment size, number of fragments. can anybody helps on question 1?