Re: Changing label few times killed filesystem?

2014-11-23 Thread Boris Chernov
I suggest upgrading and just posting the results from 'btrfs check device' without any options and see what you get. OK, I have upgraded to 3.17.0 kernel and I also have upgraded btrfs-tools: # btrfs --version Btrfs v3.17 # btrfs check /dev/sdb1 Checking filesystem on /dev/sdb1 UUID:

Re: Best GIT repository(s) for preparing patches?

2014-11-23 Thread Hugo Mills
On Sat, Nov 22, 2014 at 04:14:35PM -0800, Robert White wrote: Which is the best GIT repository to clone for each of the kernel support and btrfs-progs, for preparing a patch to submit to this email list? For kernel, I would suggest using a repo with Linus's latest -rc tag (Linus's, for

Re: Fixing Btrfs Filesystem Full Problems typo?

2014-11-23 Thread Patrik Lundquist
On 23 November 2014 at 08:52, Duncan 1i5t5.dun...@cox.net wrote: [a whole lot] Thanks for the long post, Duncan. My venture into the finer details of balance began with converting an ext4 fs to btrfs and after an inital defrag having a full balance fail with about a third to go. Consecutive

[GIT PULL] Btrfs deadlock fix

2014-11-23 Thread Chris Mason
Hi Linus, My for-linus branch: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus Has a fix for a long standing deadlock that we've been trying to nail down for a while. It ended up being a bad interaction with the fair reader/writer locks and the order btrfs

Re: Fixing Btrfs Filesystem Full Problems typo?

2014-11-23 Thread Marc MERLIN
On Sun, Nov 23, 2014 at 07:52:29AM +, Duncan wrote: Right. So, why would you rebalance empty chunks or near empty chunks? Don't you want to rebalance almost full chunks first, and work you way to less and less full as needed? No, the closer to empty a chunk is, the more effect you can

Re: Fixing Btrfs Filesystem Full Problems typo?

2014-11-23 Thread Holger Hoffstätte
On Sun, 23 Nov 2014 13:16:50 -0800, Marc MERLIN wrote: (snip) That makes sense. I'll try to synthetize all this and rewrite my blog post and the wiki to make this clearer. Maybe also add that as of 3.18 empty block groups are automatically collected, so balancing to prevent

Re: [GIT PULL] Btrfs deadlock fix

2014-11-23 Thread Benjamin Herrenschmidt
On Sun, 2014-11-23 at 10:14 -0500, Chris Mason wrote: Hi Linus, My for-linus branch: Not sure if this is related, but with -rc4, on this ppc64el box, when grub updates (it starts trying to mount everything under the sun with every filesystem), the box hangs with: [ 177.344522] INFO:

Re: [GIT PULL] Btrfs deadlock fix

2014-11-23 Thread Chris Mason
On Sun, Nov 23, 2014 at 7:23 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Sun, 2014-11-23 at 10:14 -0500, Chris Mason wrote: Hi Linus, My for-linus branch: Not sure if this is related, but with -rc4, on this ppc64el box, when grub updates (it starts trying to mount

Help with Btrfs TracePoints and FTrace

2014-11-23 Thread ygovind
Hi - I have taken minor project on Btrfs file system as my independent study and trying to understand data/metadata allocation algorithm used in Btrfs file system. I would like to know how can I use Btrfs Tracepoints and Ftrace to debug. I was trying to find documents on web but wasn't able to

Re: Changing label few times killed filesystem?

2014-11-23 Thread Duncan
Boris Chernov posted on Sun, 23 Nov 2014 11:00:16 + as excerpted: P.S. I received on my mail only shortest reply about mount command, so I was able to read other replies only after few days when they appeared on gmane (I wasn't subscribed at the time because I did not expect gmane to be

Re: [GIT PULL] Btrfs deadlock fix

2014-11-23 Thread Benjamin Herrenschmidt
On Sun, 2014-11-23 at 19:27 -0500, Chris Mason wrote: This should be from CONFIG_BTRFS_FS_RUN_SANITY_TESTS=y. I do test with this on here, but I'll look it over for ppc related fun. The deadlock fix from this pull shouldn't be related. Just to make sure I read your email right, this stall

Re: Fixing Btrfs Filesystem Full Problems typo?

2014-11-23 Thread Duncan
Patrik Lundquist posted on Sun, 23 Nov 2014 16:12:54 +0100 as excerpted: The balance run now finishes without errors with usage=99 and I think I'll leave it at that. No RAID yet but will convert to RAID1. Converting between raid modes is done with a balance, so if you can't get that last bit

Re: Fixing Btrfs Filesystem Full Problems typo?

2014-11-23 Thread Duncan
Holger Hoffstätte posted on Sun, 23 Nov 2014 22:49:01 + as excerpted: On Sun, 23 Nov 2014 13:16:50 -0800, Marc MERLIN wrote: (snip) That makes sense. I'll try to synthetize all this and rewrite my blog post and the wiki to make this clearer. Maybe also add that as of 3.18 empty

[RFC PATCH] Btrfs-progs: support sha256 checksum algorithm

2014-11-23 Thread Liu Bo
This is the progs side patch to support sha256. Sha256 can be seleted on mkfs stage, mkfs.btrfs -C 256 /device Signed-off-by: Liu Bo bo.li@oracle.com --- Makefile | 6 +- btrfs-convert.c| 24 +++-- btrfs-find-root.c | 6 +- btrfs-image.c | 35 ---

Re: [PATCH] btrfs: remove empty fs_devices to prevent memory runout

2014-11-23 Thread Gui Hecheng
On Fri, 2014-11-21 at 19:03 +0800, Anand Jain wrote: Hi Gui, Thanks for attempting this. There was this patch previously attempted for the same problem, which I had to nack.. [PATCH 1/2] btrfs: device list could grow infinite I haven't seen your fix in full yet, But looks

Re: Help with Btrfs TracePoints and FTrace

2014-11-23 Thread Rohan Puri
On Mon, Nov 24, 2014 at 7:03 AM, ygovind ygov...@cs.wisc.edu wrote: Hi - I have taken minor project on Btrfs file system as my independent study and trying to understand data/metadata allocation algorithm used in Btrfs file system. I would like to know how can I use Btrfs Tracepoints and Ftrace

[PATCH] btrfs-progs: Doc: Add explain on 'source' and 'target' for btrfs-image.

2014-11-23 Thread Qu Wenruo
Add explain on 'source' and 'target', which is somewhat confusing for users who want to restore dumped image. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/btrfs-image.txt | 5 + btrfs-image.c | 2 ++ 2 files changed, 7 insertions(+) diff --git