[PATCH] snapshot, defragment and raid test cases for btrfs

2011-08-05 Thread Anand Jain
Hi, Attached is the patch for the xfstests, which adds snapshot, defragment and volume management test cases for the btrfs (257, 258 and 259 respectively). This introduces a new user variable 'DISK_POOL' which should be set to disks for the raid tests. An example of usage of these tests

Re: BTRFS partition won't mount

2011-08-05 Thread Yuri D'Elia
On Wed, 3 Aug 2011 16:46:01 -0400 Adam Newby ane...@ceradyne.com wrote: Hello all, I recently had a power failure and can no longer mount my /home directory. The harddrive has two BTRFS partitions: sda7(/) and sda8(/home). The / partition loads up just fine, but /home does not. I've tried

[PATCH 2/2] Btrfs: fix uninitialized sync_pending

2011-08-05 Thread Miao Xie
sync_pending is uninitialized before it be used, fix it. Signed-off-by: Miao Xie mi...@cn.fujitsu.com --- fs/btrfs/volumes.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 3c5f2fc..918adf6 100644 --- a/fs/btrfs/volumes.c

Re: btrfs-progs repository

2011-08-05 Thread Leonidas Spyropoulos
Updated the wiki accordingly On Thu, Aug 4, 2011 at 2:20 PM, Leonidas Spyropoulos artafi...@gmail.com wrote: On Thu, Aug 4, 2011 at 11:14 AM, Helmut Hullen hul...@t-online.de wrote: Hallo, Leonidas, Du meintest am 04.08.11: Another thing is that there are commands for creating the build

Re: INSTALL hint: create device btrfs-control

2011-08-05 Thread Helmut Hullen
Hallo, Hugo, Du meintest am 04.08.11: What are the symptoms of not having the device node? (i.e. how would I diagnose this particular problem?) If I remember correct: mounting works, writing works, reading works. And adding another partition works. But there are strange messages when I

[PATCH 1/2] Btrfs: fix wrong free space information

2011-08-05 Thread Miao Xie
Btrfs subtracted the size of the allocated space twice when it allocated the space from the bitmap in the cluster, it broke the free space information and led to oops finally. And this patch also fixes the bug that ctl-free_space was subtracted without lock. Reported-by: Liu Bo

Re: [RFC] btrfs send and receive

2011-08-05 Thread Jan Schmidt
On 02.08.2011 18:01, Jan Schmidt wrote: On 02.08.2011 17:21, Chris Mason wrote: But, I'll toss in an alternative. Adapt the git pack files a little and use them as the format. There are a few reasons for this: Git has a very strong developer community and is already being hammered into use

Re: [PATCH] snapshot, defragment and raid test cases for btrfs

2011-08-05 Thread Amir Goldstein
Hi Anand, Can you please post the patch in the body of the message so we can comment on it inline. Aditya is also working on a btrfs snapshots xfstest (currently named 257) as part of his Google summer of code project. It would be great if you guys can cooperate your efforts. BTW, while

[patch] btrfs: memory leak in btrfs_add_inode_defrag()

2011-08-05 Thread Dan Carpenter
We don't use the defrag struct on this path. Signed-off-by: Dan Carpenter erro...@gmail.com diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 658d669..1102059 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -150,6 +150,8 @@ int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans,

Re: [PATCH] snapshot, defragment and raid test cases for btrfs

2011-08-05 Thread Greg Freemyer
On Fri, Aug 5, 2011 at 9:53 AM, Amir Goldstein amir7...@gmail.com wrote: Hi Anand, Can you please post the patch in the body of the message so we can comment on it inline. Aditya is also working on a btrfs snapshots xfstest (currently named 257) as part of his Google summer of code

[PATCH] btrfs: Handle NULL inode return from btrfs_lookup_dentry()

2011-08-05 Thread Mark Fasheh
Right now in create_snapshot(), we'll BUG() if btrfs_lookup_dentry() returns a NULL inode (negative dentry). Getting a negative dentry here probably isn't ever expected to happen however two things lead me to believe that we should trap this anyway: - I don't see any possiblity of serious fs

[PATCH] btrfs: Don't BUG_ON errors from btrfs_create_subvol_root()

2011-08-05 Thread Mark Fasheh
This is called from only one place - create_subvol() which passes errors safely back out to it's caller, btrfs_mksubvol where they are handled. Additionally, btrfs_create_subvol_root() itself bug's needlessly from error return of btrfs_update_inode(). Since create_subvol() was fixed to catch

Re: btrfs-progs integration branch updated

2011-08-05 Thread Jan Schubert
Hugo Mills hugo at carfax.org.uk writes: It includes the latest scrub patches, the compile fixes for gcc 4.6, and a selection of other, smaller features. Go forth and play. Thx Hugo, I hit this error while trying to compile: # make dir-test ls dir-test.c dir-test.c gcc