[PATCH] btrfs: fix disk-io.c/btrfs_read_dev_super with BTRFS_SUPER_MIRROR_MAX to control the loops

2012-09-09 Thread Wang Sheng-Hui
To check the duplicated super blocks, use BTRFS_SUPER_MIRROR_MAX as the loops limit. Signed-off-by: Wang Sheng-Hui --- fs/btrfs/disk-io.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 22e98e0..a431144 100644 --- a/fs/btrfs

Re: [PATCH] Btrfs: move the sb_end_intwrite until after the throttle logic

2012-09-09 Thread Sage Weil
On Wed, 5 Sep 2012, Josef Bacik wrote: > Sage reported the following lockdep backtrace > > = > [ BUG: bad unlock balance detected! ] > 3.6.0-rc2-ceph-00171-gc7ed62d #1 Not tainted > - > btrfs-cleaner/7607 is trying to release

Re: enquiry about defrag

2012-09-09 Thread ching
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

Re: enquiry about defrag

2012-09-09 Thread Fajar A. Nugraha
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

Re: enquiry about defrag

2012-09-09 Thread ching
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 d