Re: [PATCH] xfstests: add test 254 for testing basic btrfs volume functionality

2011-05-25 Thread Christoph Hellwig
On Tue, May 24, 2011 at 04:26:03PM -0400, Josef Bacik wrote: This test just runs through all of the basic btrfs commands that manipulate our subvolume stuff. It creates a snapshot, a subvolume, sets the subvolume as a default, lists the volumes and deletes the snapshot. Thanks,

BUG: unable to handle kernel NULL pointer dereference

2011-05-25 Thread matthieu Barthélemy
Hi all, I have a Btrfs partition that cannot be mounted anymore, it makes kernel to crash. The partition was created a few months ago, with kernel 2.6.33 (with no special options) if I remember well. Since then, with new kernel releases, I enabled a few options : first space_cache, then compress,

[PATCH] btrfs scrub: don't coalesce pages that are logically discontiguous

2011-05-25 Thread Arne Jansen
scrub_page collects several pages into one bio as long as they are physically contiguous. As we only save one logical address for the whole bio, don't collect pages that are physically contiguous but logically discontiguous. Signed-off-by: Arne Jansen sensi...@gmx.net --- fs/btrfs/scrub.c |3

Re: [PATCH 1/2] tracing: add __print_symbolic_u64 to avoid warnings on 32bit machine

2011-05-25 Thread Steven Rostedt
On Thu, 2011-05-26 at 01:49 -0400, liubo wrote: On 05/01/2011 11:35 AM, Steven Rostedt wrote: On Fri, 2011-04-29 at 18:01 +0800, liubo wrote: ping? Sorry, I've been trying to get the new ftrace function tracer features out ASAP. I plan on looking at this when I'm done. Thanks,

Re: [PATCH] btrfs scrub: don't coalesce pages that are logically discontiguous

2011-05-25 Thread Arne Jansen
On 25.05.2011 14:22, Arne Jansen wrote: scrub_page collects several pages into one bio as long as they are physically contiguous. As we only save one logical address for the whole bio, don't collect pages that are physically contiguous but logically discontiguous. This patch applies to the

Re: Integration branch pushed out to btrfs-unstable

2011-05-25 Thread Arne Jansen
On 23.05.2011 21:54, Chris Mason wrote: Hi everyone, I've pushed out my current kernel git tree to a new branch called integration-test. This is meant for integration testing only and should not be run by anyone who doesn't love crashes. I've pulled together a lot of important work from

Re: Backref walking utilities

2011-05-25 Thread Jan Schmidt
On 05/23/2011 12:02 PM, Arne Jansen wrote: Hi liubo, On 23.05.2011 11:53, liubo wrote: As one of my plans, I'm going to take this project over unless someone has been working on it. Jan Schmidt has a patch for scrub nearly ready, that does some ref-walking to report affected files to

Re: [PATCH 1/2] tracing: add __print_symbolic_u64 to avoid warnings on 32bit machine

2011-05-25 Thread Randy Dunlap
On Wed, 25 May 2011 08:27:44 -0400 Steven Rostedt wrote: On Thu, 2011-05-26 at 01:49 -0400, liubo wrote: On 05/01/2011 11:35 AM, Steven Rostedt wrote: On Fri, 2011-04-29 at 18:01 +0800, liubo wrote: ping? Sorry, I've been trying to get the new ftrace function tracer features

Re: [PATCH 1/2] tracing: add __print_symbolic_u64 to avoid warnings on 32bit machine

2011-05-25 Thread Steven Rostedt
On Wed, 2011-05-25 at 09:12 -0700, Randy Dunlap wrote: But what I sent out previously is not going into 2.6.40 anyway. Ingo feels that it's too late in the merge window to pull those changes and wants to wait till the next merge window. Since there's some fixes in that pull request,

Re: [PATCH 1/2] tracing: add __print_symbolic_u64 to avoid warnings on 32bit machine

2011-05-25 Thread Randy Dunlap
On 05/25/11 09:47, Steven Rostedt wrote: On Wed, 2011-05-25 at 09:12 -0700, Randy Dunlap wrote: But what I sent out previously is not going into 2.6.40 anyway. Ingo feels that it's too late in the merge window to pull those changes and wants to wait till the next merge window. Since there's

[PATCH] Btrfs: cache bitmaps when searching for a cluster

2011-05-25 Thread Josef Bacik
If we are looking for a cluster in a particularly sparse or fragmented block group, we will do a lot of looping through the free space tree looking for various things, and if we need to look at bitmaps we will endup doing the whole dance twice. So instead add the bitmap entries to a temporary

[PATCH] Btrfs: noinline the cluster searching functions

2011-05-25 Thread Josef Bacik
When profiling the find cluster code it's hard to tell where we are spending our time because the bitmap and non-bitmap functions get inlined by the compiler, so make that not happen. Thanks, Signed-off-by: Josef Bacik jo...@redhat.com --- fs/btrfs/free-space-cache.c | 18 ++

[PATCH] Btrfs: don't commit the transaction if we dont have enough pinned bytes

2011-05-25 Thread Josef Bacik
I noticed when running an enospc test that we would get stuck committing the transaction in check_data_space even though we truly didn't have enough space. So check to see if bytes_pinned is bigger than num_bytes, if it's not don't commit the transaction. Thanks, Signed-off-by: Josef Bacik

Re: [Validation] How to properly use the subvolume and snapshot for a backup method

2011-05-25 Thread Goffredo Baroncelli
On 05/25/2011 05:49 AM, Sylvain Alain wrote: Hi everyone, first of all, I want to say that I'm learning how to use BTRFS and I really enjoy all the subvolume and the snapshot features. Also, I'm a backup freak :P Basically, I have 4 questions : 1. I would like to know what is the best

Re: BUG: unable to handle kernel NULL pointer dereference

2011-05-25 Thread matthieu Barthélemy
Finally I successfully remounted my partition. Here is how I've done to recover, in case it can help someone else : I had to clone btrfs-progs-unstable tree. Then checkout branch tmp (because I use compression, default btrfs-progs are too old Then I compiled btrfs-zero-log with make

Re: parent transid troubles

2011-05-25 Thread Gregory L Shomo
Chris Mason chris.ma...@oracle.com writes: OK, we've re-compiled linux-2.6.38 patched up to btrfs-unstable commit f65647c29b14f5a32ff6f3237b0ef3b375ed5a79 and can now mount the filesystem. Mounting the filesystem read-only from /dev/sdd1 fails, but succeeds from /dev/sdc1... after about

Re: Integration branch pushed out to btrfs-unstable

2011-05-25 Thread Sergei Trofimovich
The commit commit c4f675cd40d955d539180506c09515c90169b15b Author: Sergei Trofimovich sly...@gentoo.org Date: Fri May 20 20:20:30 2011 + btrfs: don't spin in shrink_delalloc if there is nothing to free gives me very early ENOSPC in my tests on a small volume (7GB). What king

parent transid verify failures on 2.6.39

2011-05-25 Thread Craig Johnson
After doing an upgrade to 2.6.39 from 2.6.39-rc7, I am unable to mount my 3 disk btrfs volume. It was a clean reboot, which makes it all the more puzzling. This is what I'm getting: [68808.339109] device fsid a941511a96bcbfb8-8c123cb07aa6aaa1 devid 2 transid 339584 /dev/sdc1 [68808.340354]

Re: kernel BUG at fs/btrfs/inode.c:2271!

2011-05-25 Thread Josef Bacik
On 05/24/2011 02:55 PM, Marco Neubauer wrote: Am 23.05.2011 um 21:14 schrieb Josef Bacik: On 05/22/2011 07:13 AM, Marco Neubauer wrote: Am 03.05.2011 um 16:54 schrieb Josef Bacik: On 04/27/2011 02:52 PM, Marco Neubauer wrote: Hi, this is happening mostly every night. I can't reproduce

[PATCH] Btrfs: don't commit the transaction if we dont have enough pinned bytes V2

2011-05-25 Thread Josef Bacik
I noticed when running an enospc test that we would get stuck committing the transaction in check_data_space even though we truly didn't have enough space. So check to see if bytes_pinned is bigger than num_bytes, if it's not don't commit the transaction. Thanks, Signed-off-by: Josef Bacik

Re: parent transid verify failures on 2.6.39

2011-05-25 Thread Craig Johnson
I can wait a couple of days for the new tool - glad to know that there is still hope. If the new btrfsck isn't available within a week or so I might hit you up for that patch. Thanks! - Craig On Wed, May 25, 2011 at 2:28 PM, Josef Bacik jo...@redhat.com wrote: On 05/25/2011 03:06 PM, Craig

Re: BUG: unable to handle kernel NULL pointer dereference

2011-05-25 Thread Josef Bacik
On 05/25/2011 01:41 PM, matthieu Barthélemy wrote: Finally I successfully remounted my partition. Here is how I've done to recover, in case it can help someone else : I had to clone btrfs-progs-unstable tree. Then checkout branch tmp (because I use compression, default btrfs-progs are too

Re: [PATCH 1/3] fs: add SEEK_HOLE and SEEK_DATA flags V4

2011-05-25 Thread Andreas Dilger
On May 23, 2011, at 15:43, Josef Bacik wrote: This just gets us ready to support the SEEK_HOLE and SEEK_DATA flags. Turns out using fiemap in things like cp cause more problems than it solves, so lets try and give userspace an interface that doesn't suck. We need to match solaris here, and

Re: BUG: unable to handle kernel NULL pointer dereference

2011-05-25 Thread matthieu Barthélemy
2011/5/25 Josef Bacik jo...@redhat.com: On 05/25/2011 01:41 PM, matthieu Barthélemy wrote: Finally I successfully remounted my partition. Here is how I've done to recover, in case it can help someone else :  I had to clone btrfs-progs-unstable tree. Then checkout branch tmp (because I use

Re: [PATCH 1/2] tracing: add __print_symbolic_u64 to avoid warnings on 32bit machine

2011-05-25 Thread Li Zefan
Steven Rostedt wrote: On Wed, 2011-05-25 at 09:12 -0700, Randy Dunlap wrote: But what I sent out previously is not going into 2.6.40 anyway. Ingo feels that it's too late in the merge window to pull those changes and wants to wait till the next merge window. Since there's some fixes in

Re: Backref walking utilities

2011-05-25 Thread liubo
On 05/25/2011 11:08 PM, Jan Schmidt wrote: On 05/23/2011 12:02 PM, Arne Jansen wrote: Hi liubo, On 23.05.2011 11:53, liubo wrote: As one of my plans, I'm going to take this project over unless someone has been working on it. Jan Schmidt has a patch for scrub nearly ready, that does some

[PATCH] Btrfs: setup free ino caching in a more asynchronous way

2011-05-25 Thread Li Zefan
For a filesystem that has lots of files in it, the first time we mount it with free ino caching support, it can take quite a long time to setup the caching before we can create new files. Here we fill the cache with [highest_ino, BTRFS_LAST_FREE_OBJECTID] before we start the caching thread to

[PATCH] Btrfs: make lzo the default compression scheme

2011-05-25 Thread Li Zefan
As the lzo compression feature has been established for quite a while, we are now ready to replace zlib with lzo as the default compression scheme. Signed-off-by: Li Zefan l...@cn.fujitsu.com --- fs/btrfs/disk-io.c |2 +- fs/btrfs/ioctl.c |2 +- fs/btrfs/super.c |8 3