[PATCH] Btrfs-progs: fix segmentation fault of 'btrfs-debug-tree -e'

2013-02-18 Thread Liu Bo
Due to some historical reasons, we remove 'printing leaf' part, which'd lead to 'Segmentation fault' of btrfs-debug-tree -e, this patch adds it back. Signed-off-by: Liu Bo bo.li@oracle.com --- debug-tree.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

btrfs send receive produces Too many open files in system

2013-02-18 Thread Adam Ryczkowski
I believe what I am going to write is a bug report. When I finaly did # btrfs send -v /mnt/adama-docs/backups/20130101-192722 | btrfs receive /mnt/tmp/backups to migrate btrfs from one partition layout to another. After a while system keeps saying that Too many open files in system and

Re: [PATCH] Btrfs: fix the deadlock between the transaction attach and commit

2013-02-18 Thread Miao Xie
(Sorry for the late reply, I was on my vacation of the Spring Festival last week.) On Tue, 12 Feb 2013 13:56:32 +0100, David Sterba wrote: On Mon, Feb 11, 2013 at 03:35:37PM -0500, Josef Bacik wrote: or something like that. Me and kdave reproduced by running 274 in a loop, it happpened

Re: [btrfs-progs] testing btrfs hierarchical quotas

2013-02-18 Thread Hugo Mills
On Mon, Feb 18, 2013 at 10:44:06AM +0530, Hemanth Kumar wrote: On Sat, Feb 16, 2013 at 2:29 AM, Hugo Mills h...@carfax.org.uk wrote: Here's a question -- what are you testing? (Not just here, but in general, with your test infrastructure) There are (at least) three classes of tests

Re: [PATCH] Btrfs: place ordered operations on a per transaction list

2013-02-18 Thread Miao Xie
On wed, 13 Feb 2013 11:13:22 -0500, Josef Bacik wrote: Miao made the ordered operations stuff run async, which introduced a deadlock where we could get somebody (sync) racing in and committing the transaction while a commit was already happening. The new committer would try and flush ordered

Re: Rebalancing RAID1

2013-02-18 Thread Stefan Behrens
On Fri, 15 Feb 2013 22:56:19 +0100 (CET), Fredrik Tolf wrote: The oops cut can be found here: http://www.dolda2000.com/~fredrik/tmp/btrfs-oops This scrub issue is fixed since Linux 3.8-rc1 with commit 4ded4f6 Btrfs: fix BUG() in scrub when first superblock reading gives EIO -- To unsubscribe

Re: [PATCH] Btrfs: place ordered operations on a per transaction list

2013-02-18 Thread Josef Bacik
On Mon, Feb 18, 2013 at 04:22:09AM -0700, Miao Xie wrote: On wed, 13 Feb 2013 11:13:22 -0500, Josef Bacik wrote: Miao made the ordered operations stuff run async, which introduced a deadlock where we could get somebody (sync) racing in and committing the transaction while a commit was

Re: [PATCH V5] Btrfs: snapshot-aware defrag

2013-02-18 Thread Stefan Behrens
On Sat, 16 Feb 2013 14:47:45 +0800, Liu Bo wrote: What about this patch(UNTESTED)? thanks, liubo diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ca7ace7..dac9d4b 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -4142,9 +4142,14 @@ static void inode_tree_del(struct inode

Re: Fixing mount points

2013-02-18 Thread Chris Murphy
On Feb 18, 2013, at 12:45 AM, Bob McGowan ramjr0...@gmail.com wrote: Even though things look OK from the command line, logging in through the window system fails (actually, just hangs). I assume this means I should be doing something to clean up the subvolume? Or maybe there's

Re: Kernel panic when scrub is used

2013-02-18 Thread Arne Jansen
On 02/18/13 18:14, Jérôme Poulin wrote: I experience a kernel panic with General protection fault when doing a scrub on Kernel 3.8-rc7. Here is a screenshot: http://tinypic.com/r/34r6nad/6 I'd love to see the first stacktrace... The weird part is that the scrub completes from initramfs,

Re: Kernel panic when scrub is used

2013-02-18 Thread Jérôme Poulin
Here you go, I also added 2 other screenshots of the same problem. http://tinypic.com/r/5ckgug/6 http://tinypic.com/r/t0i9t4/6 http://tinypic.com/r/2r3xdvl/6 On Mon, Feb 18, 2013 at 12:37 PM, Arne Jansen li...@die-jansens.de wrote: On 02/18/13 18:14, Jérôme Poulin wrote: I experience a kernel

Re: Kernel panic when scrub is used

2013-02-18 Thread Arne Jansen
On 02/18/13 18:53, Jérôme Poulin wrote: Here you go, I also added 2 other screenshots of the same problem. http://tinypic.com/r/5ckgug/6 http://tinypic.com/r/t0i9t4/6 http://tinypic.com/r/2r3xdvl/6 do you have any idea how I can reproduce it here? -Arne On Mon, Feb 18, 2013 at 12:37 PM,

[PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-18 Thread Goffredo Baroncelli
This patch adds some helpers to manage the strings allocation and deallocation. The function string_list_add(char *) adds the passed string to a list; the function string_list_free() frees all the strings together. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- Makefile |3

[PATCH 2/8] Enhance the command btrfs filesystem df.

2013-02-18 Thread Goffredo Baroncelli
Enhance the command btrfs filesystem df to show space usage information for a mount point(s). It shows also an estimation of the space available, on the basis of the current one used. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- Makefile |2 +- cmds-fi-disk_usage.c |

[PATCH 4/8] Add helpers functions to handle the printing of data in tabular format.

2013-02-18 Thread Goffredo Baroncelli
This patch adds some functions to manage the printing of the data in tabular format. The function struct string_table *table_create(int columns, int rows) creates an (empty) table. The functions char *table_printf(struct string_table *tab, int column, int row,

[PATCH 6/8] Create entry in man page for btrfs filesystem disk-usage

2013-02-18 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in | 13 + 1 file changed, 13 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index e2f86ea..50dc510 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -29,6 +29,9 @@ btrfs \- control a btrfs

[PATCH 7/8] Add btrfs device disk-usage command

2013-02-18 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-device.c|3 ++ cmds-fi-disk_usage.c | 141 ++ cmds-fi-disk_usage.h |4 ++ 3 files changed, 148 insertions(+) diff --git a/cmds-device.c b/cmds-device.c index

[PATCH 5/8] Add command btrfs filesystem disk-usage

2013-02-18 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-fi-disk_usage.c | 434 +- cmds-fi-disk_usage.h |2 + cmds-filesystem.c|2 + utils.c | 58 +++ utils.h |3 + 5 files changed, 498

[PATCH 8/8] Create a new entry in btrfs man page for btrfs device disk-usage.

2013-02-18 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in |8 1 file changed, 8 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 50dc510..e60c81f 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -46,6 +46,8 @@ btrfs \- control a btrfs filesystem

[PATCH][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support

2013-02-18 Thread Goffredo Baroncelli
Hi all, I updates my previous patches [1] to add support for raid5/6. These patches update the btrfs fi df command and add two new commands: - btrfs filesystem disk-usage path - btrfs device disk-usage path The command btrfs filesystem df now shows only the disk usage/available. $ sudo btrfs

[PATCH 3/8] Create the man page entry for the command btrfs fi df

2013-02-18 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in | 49 + 1 file changed, 49 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 94f4ffe..e2f86ea 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -31,6 +31,8

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-18 Thread Zach Brown
On Mon, Feb 18, 2013 at 10:04:26PM +0100, Goffredo Baroncelli wrote: This patch adds some helpers to manage the strings allocation and deallocation. The function string_list_add(char *) adds the passed string to a list; the function string_list_free() frees all the strings together. Please

RAID5/6 Implementation - Understanding first

2013-02-18 Thread Tony Plack
Chris and team, hats off on the RAID5/6 being at least experimental. I have been following your work for a year now, and waiting for these days. I am trying to get my head rapped around the architecture for BTRFS before I jump in and start recommending code changes to the branch. What I am

Re: RAID5/6 Implementation - Understanding first

2013-02-18 Thread Chris Mason
On Mon, Feb 18, 2013 at 04:20:58PM -0700, Tony Plack wrote: Chris and team, hats off on the RAID5/6 being at least experimental. I have been following your work for a year now, and waiting for these days. I am trying to get my head rapped around the architecture for BTRFS before I jump in

Re: [PATCH V5] Btrfs: snapshot-aware defrag

2013-02-18 Thread Liu Bo
On Mon, Feb 18, 2013 at 05:53:50PM +0100, Stefan Behrens wrote: On Sat, 16 Feb 2013 14:47:45 +0800, Liu Bo wrote: What about this patch(UNTESTED)? thanks, liubo diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ca7ace7..dac9d4b 100644 --- a/fs/btrfs/inode.c +++

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-18 Thread Goffredo Baroncelli
On 02/19/2013 12:08 AM, Zach Brown wrote: On Mon, Feb 18, 2013 at 10:04:26PM +0100, Goffredo Baroncelli wrote: This patch adds some helpers to manage the strings allocation and deallocation. The function string_list_add(char *) adds the passed string to a list; the function string_list_free()