Re: btrfs scrub BUG: unable to handle kernel NULL pointer dereference

2012-05-04 Thread Hubert Kario
On Friday 04 of May 2012 08:00:59 Arne Jansen wrote: On 04.05.2012 05:19, Mark Murawski wrote: I think I have some failing hard drives, they are disconnected for now. stan {~} root# btrfs filesystem show Label: none uuid: d71404d4-468e-47d5-8f06-3b65fa7776aa Total devices 2

[BUG] sleeping function called from atomic context

2012-05-04 Thread Stefan Behrens
Looks like after btrfs read error corrected of chunk tree block while reading the chunk tree in open_ctree(), we stay in atomic state (in 3.4-rc5). The steps: # mkfs.btrfs -d raid1 -m raid1 /dev/sdv /dev/sdw /dev/sdi # mount /dev/sdv /mnt fill /mnt to 25% full # umount /mnt disconnect /dev/sdw #

Re: Can't mount

2012-05-04 Thread David Sterba
On Fri, May 04, 2012 at 10:43:16AM +0700, Fajar A. Nugraha wrote: Is btrfs-zero-log still relevant? I imagine losing several last transactions is MUCH more convinient than having to recreate the enitre fs (even if restore managed to salvage everything). IMHO it is, a few days ago this helped

Re: ran cppcheck and going to make cosmetic changes--where do I submit code?

2012-05-04 Thread Anand Jain
where do I submit the code when I'm done? P.S. This is my first kernel project, so I'm going to need some direction. wiki page 'Writing patch for btrfs' has this info http://btrfs.ipv5.de/index.php?title=Writing_patch_for_btrfs good luck. -Anand -- To unsubscribe from this list: send

Re: [BUG] sleeping function called from atomic context

2012-05-04 Thread Chris Mason
On Fri, May 04, 2012 at 12:18:51PM +0200, Stefan Behrens wrote: Looks like after btrfs read error corrected of chunk tree block while reading the chunk tree in open_ctree(), we stay in atomic state (in 3.4-rc5). I'm having a hard time reproducing this here. Do you have lockdep on? It might

Re: [BUG] sleeping function called from atomic context

2012-05-04 Thread David Sterba
On Fri, May 04, 2012 at 09:25:36AM -0400, Chris Mason wrote: I'm having a hard time reproducing this here. Do you have lockdep on? It might tell us which lock we're leaving around. He's using SLUB and it does not like waiting allocations when CONFIG_SLUB_DEBUG is on: 445 #ifdef

Re: [BUG] sleeping function called from atomic context

2012-05-04 Thread Chris Mason
On Fri, May 04, 2012 at 03:36:16PM +0200, David Sterba wrote: On Fri, May 04, 2012 at 09:25:36AM -0400, Chris Mason wrote: I'm having a hard time reproducing this here. Do you have lockdep on? It might tell us which lock we're leaving around. He's using SLUB and it does not like waiting

Re: [BUG] sleeping function called from atomic context

2012-05-04 Thread Stefan Behrens
On 5/4/2012 3:25 PM, Chris Mason wrote: On Fri, May 04, 2012 at 12:18:51PM +0200, Stefan Behrens wrote: Looks like after btrfs read error corrected of chunk tree block while reading the chunk tree in open_ctree(), we stay in atomic state (in 3.4-rc5). I'm having a hard time reproducing this

Re: [BUG] sleeping function called from atomic context

2012-05-04 Thread Chris Mason
On Fri, May 04, 2012 at 05:20:16PM +0200, Stefan Behrens wrote: On 5/4/2012 3:25 PM, Chris Mason wrote: On Fri, May 04, 2012 at 12:18:51PM +0200, Stefan Behrens wrote: Looks like after btrfs read error corrected of chunk tree block while reading the chunk tree in open_ctree(), we stay in

BTRFS RAID

2012-05-04 Thread Michael Bailey
Greetings, I have a few questions pertaining to BTRFS RAID. I know it's been rumored a lot recently that kernel 3.4 will have RAID5/6 support, is this still the case. Also, is it possible to change from a single drive system to a raid system or even a multi drive system without raid to a

Re: [BUG] sleeping function called from atomic context

2012-05-04 Thread Chris Mason
On Fri, May 04, 2012 at 05:20:16PM +0200, Stefan Behrens wrote: On 5/4/2012 3:25 PM, Chris Mason wrote: On Fri, May 04, 2012 at 12:18:51PM +0200, Stefan Behrens wrote: Looks like after btrfs read error corrected of chunk tree block while reading the chunk tree in open_ctree(), we stay in

BTRFS Benchmarking

2012-05-04 Thread Olivier Doucet
hello everyone, I made an overall benchmark of BTRFS against EXT4 and XFS. I'm quite unhappy with BTRFS results, so maybe tuning was not perfect. http://www.slideshare.net/ezameku/btrfs-benchmark All data is vectorial, so download the PDF and you can zoom ;) If you have any feedback on how to

Re: BTRFS Benchmarking

2012-05-04 Thread Josef Bacik
On Fri, May 04, 2012 at 06:03:50PM +0200, Olivier Doucet wrote: hello everyone, I made an overall benchmark of BTRFS against EXT4 and XFS. I'm quite unhappy with BTRFS results, so maybe tuning was not perfect. http://www.slideshare.net/ezameku/btrfs-benchmark All data is vectorial, so

Re: BTRFS RAID

2012-05-04 Thread Tomasz Torcz
On Fri, May 04, 2012 at 09:46:15AM -0500, Michael Bailey wrote: Greetings, I have a few questions pertaining to BTRFS RAID. I know it's been rumored a lot recently that kernel 3.4 will have RAID5/6 support, is this still the case. It seem to be wrong. Chris Mason hinted that RAID5/6

balancing metadata fails with no space left on device

2012-05-04 Thread Martin Steigerwald
Hi! merkaba:~ btrfs balance start -m / ERROR: error during balancing '/' - No space left on device There may be more info in syslog - try dmesg | tail merkaba:~#19 dmesg | tail -22 [ 62.918734] CPU0: Package power limit normal [ 525.229976] btrfs: relocating block group 20422066176 flags 1 [

[PATCH 1/3] btrfs: Fix missed backrefs in backref walking code

2012-05-04 Thread Alexander Block
__merge_refs was deleting unresolved prelim refs resulting in missed backrefs in the backref walking code. Thanks to Arne and Jan for finding this. Signed-off-by: Alexander Block abloc...@googlemail.com --- fs/btrfs/backref.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff

[PATCH 2/3] btrfs: Fix ulist related problems in backref walking code

2012-05-04 Thread Alexander Block
1. in btrfs_find_all_roots This method uses a ulist to solve the recursion. The local variable node is used in combination with ulist_next to iterate through the list. Calls to find_parent_nodes fill up this list. The problem is, adding new nodes to the ulist may cause the ulist-nodes

[PATCH 3/3] btrfs: Update comment above ulist_next

2012-05-04 Thread Alexander Block
The comment above ulist_next stated that it's allowed to call ulist_add while enumerating. This is actually not allowed as an add may realocate the nodes buffer und thus make the prev pointer invalid. Signed-off-by: Alexander Block abloc...@googlemail.com --- fs/btrfs/ulist.c |4 ++-- 1

Re: [PATCH 3/3] btrfs: Update comment above ulist_next

2012-05-04 Thread Arne Jansen
On 05/04/12 20:54, Alexander Block wrote: The comment above ulist_next stated that it's allowed to call ulist_add while enumerating. This is actually not allowed as an add may realocate the nodes buffer und thus make the prev pointer invalid. Signed-off-by: Alexander

Re: Ceph on btrfs 3.4rc

2012-05-04 Thread Christian Brunner
2012/5/3 Josef Bacik jo...@redhat.com: On Thu, May 03, 2012 at 09:38:27AM -0700, Josh Durgin wrote: On Thu, 3 May 2012 11:20:53 -0400, Josef Bacik jo...@redhat.com wrote: On Thu, May 03, 2012 at 08:17:43AM -0700, Josh Durgin wrote: Yeah all that was in the right place, I rebooted and I

Re: BTRFS Benchmarking

2012-05-04 Thread cwillu
On Fri, May 4, 2012 at 10:07 AM, Josef Bacik jo...@redhat.com wrote: On Fri, May 04, 2012 at 06:03:50PM +0200, Olivier Doucet wrote: hello everyone, I made an overall benchmark of BTRFS against EXT4 and XFS. I'm quite unhappy with BTRFS results, so maybe tuning was not perfect.

Re: BTRFS Benchmarking

2012-05-04 Thread Hugo Mills
On Fri, May 04, 2012 at 06:03:50PM +0200, Olivier Doucet wrote: hello everyone, I made an overall benchmark of BTRFS against EXT4 and XFS. I'm quite unhappy with BTRFS results, so maybe tuning was not perfect. http://www.slideshare.net/ezameku/btrfs-benchmark All data is vectorial, so

Re: BTRFS Benchmarking

2012-05-04 Thread Olivier Doucet
Hi, I uploaded the PDF on Dropbox that does not require login https://www.dropbox.com/s/5i8l0kmdutxj6pb/sysbench-sas3t-btrfs1.pdf   Can you tell us what the unit of the Y-axis is? Is it MB/s or IOPs or time for a fixed amount data or... ? Unit is MB/s ; For each test, I gather speed every

btrfs device delete missing problem

2012-05-04 Thread Mark Murawski
Using the latest mason git (and kernel 3.3.4) stan {~} root# btrfs filesystem show Label: none uuid: d71404d4-468e-47d5-8f06-3b65fa7776aa Total devices 2 FS bytes used 7.09GB devid2 size 9.31GB used 9.09GB path /dev/sdd6 devid1 size 9.31GB used 9.09GB path