Re: btrfs hang on brd

2011-06-03 Thread Adrian Hunter
On 01/06/11 13:07, Adrian Hunter wrote: On 01/06/11 11:54, David Sterba wrote: On Tue, May 31, 2011 at 10:03:12AM +0300, Adrian Hunter wrote: Hi I seem to be able to get btrfs reproducibly to produce warnings and finally hang when running a stress test on a ramdisk. Testing was done using

Re: linux-next: build warninga in Linus' tree

2011-06-03 Thread David Sterba
On Wed, Jun 01, 2011 at 10:16:48AM -0500, Mitch Harder wrote: I've been playing around with resurrecting the basic sysfs capabilities that had been previously incorporated into btrfs. As it stands right now, it was relatively easy to re-implement sysfs as it was originally. However, that

Re: linux-next: build warninga in Linus' tree

2011-06-03 Thread Hugo Mills
On Fri, Jun 03, 2011 at 01:10:49PM +0200, David Sterba wrote: On Wed, Jun 01, 2011 at 10:16:48AM -0500, Mitch Harder wrote: I've been playing around with resurrecting the basic sysfs capabilities that had been previously incorporated into btrfs. As it stands right now, it was relatively

[PATCH] btrfs: move extra checks under debug option in btrfs_search_slot

2011-06-03 Thread David Sterba
CC: Josef Bacik jo...@redhat.com Signed-off-by: David Sterba dste...@suse.cz --- this patch is in conflict with josef's patch http://git.kernel.org/?p=linux/kernel/git/josef/btrfs-work.git;a=commit;h=98cdd9ffc5da7aa4c516347f7fc8f65cb08df6ae fs/btrfs/ctree.c |2 ++ 1 files changed, 2

Re: linux-next: build warninga in Linus' tree

2011-06-03 Thread Greg KH
On Fri, Jun 03, 2011 at 01:10:49PM +0200, David Sterba wrote: On Wed, Jun 01, 2011 at 10:16:48AM -0500, Mitch Harder wrote: I've been playing around with resurrecting the basic sysfs capabilities that had been previously incorporated into btrfs. As it stands right now, it was relatively

Re: [PATCH] btrfs: move extra checks under debug option in btrfs_search_slot

2011-06-03 Thread Josef Bacik
On 06/03/2011 08:09 AM, David Sterba wrote: CC: Josef Bacik jo...@redhat.com Signed-off-by: David Sterba dste...@suse.cz --- Lets use this instead, I'll drop mine. Thanks, Reviewed-by: Josef Bacik jo...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in

[PATCH] btrfs: fix uninitialized variable warning

2011-06-03 Thread David Sterba
From: David Sterba dste...@suse.cz With Linus' tree, today's linux-next build (powercp ppc64_defconfig) produced this warning: fs/btrfs/delayed-inode.c: In function 'btrfs_delayed_update_inode': fs/btrfs/delayed-inode.c:1598:6: warning: 'ret' may be used uninitialized in this function

Re: [PATCH] btrfs: fix uninitialized variable warning

2011-06-03 Thread Chris Mason
Excerpts from David Sterba's message of 2011-06-03 10:50:14 -0400: From: David Sterba dste...@suse.cz With Linus' tree, today's linux-next build (powercp ppc64_defconfig) produced this warning: fs/btrfs/delayed-inode.c: In function 'btrfs_delayed_update_inode':

Re: Quota Implementation

2011-06-03 Thread Hugo Mills
On Fri, Jun 03, 2011 at 06:24:41PM +0200, Arne Jansen wrote: Hi, If no one is already working on it, I'd like to take the Quota lock and see how far I come. Let me sketch out in short what I'm planning to do: - Quota will be subvolume based. Only the FS-trees and data extents will be

[PATCH] btrfs-progs: Avoid buffer overflow for device name

2011-06-03 Thread Milan Broz
btrfs overwrites memory for too long device paramater try btrfs device scan $(awk 'BEGIN{$5090=OFS=x;print}') ... ** buffer overflow detected ***: btrfs terminated === Backtrace: = /lib64/libc.so.6(__fortify_fail+0x37)[0x7f0ef2ea0607] /lib64/libc.so.6(+0xf6580)[0x7f0ef2e9e580]

[PATCH] btrfs: Null terminate string in scan device ioctl

2011-06-03 Thread Milan Broz
btrfs_scan_one_device() directly uses vol-name without additional checks so in the case of unterminated string in ioctl it can access memory outside of btrfs_ioctl_vol_args struct. Always terminate name string (as the same as other users do already). Signed-off-by: Milan Broz mb...@redhat.com

Delayed inode operations not doing the right thing with enospc

2011-06-03 Thread Josef Bacik
Hello, I got a lot of these when running stress.sh on my test box [ 9792.654889] [ cut here ] [ 9792.654898] WARNING: at fs/btrfs/extent-tree.c:5681 btrfs_alloc_free_block+0xca/0x27c [btrfs]() [ 9792.654899] Hardware name: To Be Filled By O.E.M. [ 9792.654900] Modules

Re: Quota Implementation

2011-06-03 Thread Andrey Kuzmin
On Fri, Jun 3, 2011 at 8:47 PM, Hugo Mills h...@carfax.org.uk wrote: On Fri, Jun 03, 2011 at 06:24:41PM +0200, Arne Jansen wrote: Hi, If no one is already working on it, I'd like to take the Quota lock and see how far I come. Let me sketch out in short what I'm planning to do:  - Quota

Re: Quota Implementation

2011-06-03 Thread Johannes Hirte
On Friday 03 June 2011 18:24:41 Arne Jansen wrote: Hi, If no one is already working on it, I'd like to take the Quota lock and see how far I come. Let me sketch out in short what I'm planning to do: - Quota will be subvolume based. Only the FS-trees and data extents will be

Re: Announcing btrfs-gui

2011-06-03 Thread Hugo Mills
On Thu, Jun 02, 2011 at 09:41:08AM +0100, Hugo Mills wrote: On Thu, Jun 02, 2011 at 03:31:16PM +0700, Fajar A. Nugraha wrote: On Thu, Jun 2, 2011 at 6:20 AM, Hugo Mills h...@carfax.org.uk wrote:   Over the last few weeks, I've been playing with a foolish idea, mostly triggered by a

Fwd: btrfs causing reboots and kernel oops on SL 6 (RHEL 6)

2011-06-03 Thread Joel Pearson
Hi, I'm using SL 6 (RHEL 6) and I've been playing around with running PostgreSQL on btrfs. Snapshotting works ok, but the computer keeps rebooting without warning (can be 5 mins or 1.5 hours), finally I actually managed to get a Kernel Crash instead of just a reboot. I took a picture of the