[PATCH v1 2/6] btrfs: make struct map_lookup public

2011-03-08 Thread Arne Jansen
definition of struct map_lookup moved from volumes.c to the header Signed-off-by: Arne Jansen sensi...@gmx.net --- fs/btrfs/volumes.c | 14 -- fs/btrfs/volumes.h | 14 ++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/fs/btrfs/volumes.c

[PATCH v1 0/6] btrfs: scrub

2011-03-08 Thread Arne Jansen
This series adds an initial implementation for scrub. It works quite straightforward. The usermode issues an ioctl for each device in the fs. For each device, it enumerates the allocated device chunks. For each chunk, the contained extents are enumerated and the data checksums fetched. The extents

[PATCH v1 1/6] btrfs: add parameter to btrfs_lookup_csum_range

2011-03-08 Thread Arne Jansen
A parameter is added to search the commit root instead of the live root. Signed-off-by: Arne Jansen sensi...@gmx.net --- fs/btrfs/ctree.h |4 ++-- fs/btrfs/file-item.c |8 +++- fs/btrfs/inode.c |2 +- fs/btrfs/relocation.c |2 +- fs/btrfs/tree-log.c |4 ++--

[PATCH v1 4/6] btrfs: add scrub code and prototypes

2011-03-08 Thread Arne Jansen
This is the main scrub code. Signed-off-by: Arne Jansen sensi...@gmx.net --- fs/btrfs/Makefile |2 +- fs/btrfs/ctree.h | 14 + fs/btrfs/scrub.c | 1462 + 3 files changed, 1477 insertions(+), 1 deletions(-) diff --git

[PATCH v1 5/6] btrfs: sync scrub with commit device removal

2011-03-08 Thread Arne Jansen
This adds several synchronizations: - for a transaction commit, the scrub gets paused before the tree roots are committed until the super are safely on disk - during a log commit, scrubbing of supers is disabled - on unmount, the scrub gets cancelled - on device removal, the scrub for the

[PATCH v1 3/6] btrfs: add state information for scrub

2011-03-08 Thread Arne Jansen
Add structures and state information needed for scrub Signed-off-by: Arne Jansen sensi...@gmx.net --- fs/btrfs/ctree.h | 26 ++ fs/btrfs/disk-io.c | 15 +++ fs/btrfs/ioctl.h | 29 + fs/btrfs/volumes.h |3 +++ 4 files

Re: About btrfs chunk tree backups

2011-03-08 Thread Josef Bacik
On Tue, Mar 08, 2011 at 12:14:05PM +0800, Miao Xie wrote: On Thu, 3 Mar 2011 07:37:25 -0500, Josef Bacik wrote: On Thu, Mar 03, 2011 at 05:01:00PM +0800, Miao Xie wrote: Hi, Chris and Josef Recently, I am interested in chunk tree backups, which is described in Project ideas web. But I

Re: [PATCH V3] btrfs: implement delayed inode items operation

2011-03-08 Thread David Sterba
Hi, I did some testing, the speedup results match yours. I was watching kmem cache stats of the delayed_node, seem to behave well. Increase and decrease of number of active objects, from 3 to about ~400 (creat_unlink 5) and went back to initial values after a few seconds. On my setup, there

please review recent fixes for file write and fiemap

2011-03-08 Thread Chris Mason
Hi Everyone, The master branch of the btrfs-unstable tree has three shiny new commits, which fix some important bugs in file_write and fiemap. These are not yet pushed to Linus but the plan is to send them out before the final .38 release. The commits fix errors in the copy_from_user handling

Re: resize ate my root node

2011-03-08 Thread Chris Mason
Excerpts from Peter Stuge's message of 2011-03-07 12:48:20 -0500: Hi, I ran btrfsctl resize -r -3gb /dev/sda2 using wireless-testing.git based on 2.6.38-rc6 and all seemed good. df reported reduced size so I repartitioned and rebooted. Filesystem can no longer be mounted: [10560.129038]

Re: [PATCH V3] btrfs: implement delayed inode items operation

2011-03-08 Thread Miao Xie
On tue, 8 Mar 2011 17:56:40 +0100, David Sterba wrote: Hi, I did some testing, the speedup results match yours. I was watching kmem cache stats of the delayed_node, seem to behave well. Increase and decrease of number of active objects, from 3 to about ~400 (creat_unlink 5) and went

Re: please review recent fixes for file write and fiemap

2011-03-08 Thread Mitch Harder
On Tue, Mar 8, 2011 at 11:58 AM, Chris Mason chris.ma...@oracle.com wrote: Hi Everyone, The master branch of the btrfs-unstable tree has three shiny new commits, which fix some important bugs in file_write and fiemap. These are not yet pushed to Linus but the plan is to send them out before