Re: can't access diagrams on wiki

2012-01-26 Thread Anand Jain
It worked. I missed the point that in mediawiki a link-to-the-new page will create a new-page. Further I hope the new contents created on btrfs.ipv5.de will be merged with btrfs.wiki.kernel.org when the latter is ready. thanks, Anand On Wednesday 25,January,2012 03:29 PM, Arne Jansen wrote:

Re: Will BTRFS repair or restore data if corrupted?

2012-01-26 Thread Hugo Mills
On Thu, Jan 26, 2012 at 12:27:57AM +0100, Waxhead wrote: Hi, From what I have read BTRFS does replace a bad copy of data with a known good copy (if it has one). Correct. Will BTRFS try to repair the corrupt data or will it simply silently restore the data without the user knowing that

Re: Will BTRFS repair or restore data if corrupted?

2012-01-26 Thread Stefan Behrens
On 1/26/2012 9:59 AM, Hugo Mills wrote: On Thu, Jan 26, 2012 at 12:27:57AM +0100, Waxhead wrote: [...] Will BTRFS try to repair the corrupt data or will it simply silently restore the data without the user knowing that a file has been fixed? No, it'll just return the good copy and report

Re: Single drive volume + second drive - RAID1?

2012-01-26 Thread Duncan
James posted on Mon, 23 Jan 2012 13:17:53 -0800 as excerpted: On Mon, Jan 23, 2012 at 1:25 AM, Hugo Mills h...@carfax.org.uk wrote:   Why not just create the filesystem as RAID-1 in the first place? # mkfs.btrfs -d raid1 -m raid1 /dev/sda1 /dev/sdb1 As I said, I've only got two working

Re: Trying to mount RAID1 degraded with removed disk - open_ctree failed

2012-01-26 Thread Duncan
Dirk Lutzebaeck posted on Sun, 22 Jan 2012 16:05:14 +0100 as excerpted: I have setup a RAID1 using 3 devices (500G each) on separate disks. After removing one disk physically the filesystem cannot be mounted in degraded nor in recovery mode. - latest kernel 3.2.1 and btrfs-tools on xubuntu

Re: [PATCH 12/12] Btrfs: Fix file clone when source offset is not 0

2012-01-26 Thread Jan Schmidt
I was looking at the clone range ioctl and have some remarks: On 27.01.2011 09:46, Li Zefan wrote: diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index f87552a..1b61dab 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1788,7 +1788,10 @@ static noinline long btrfs_ioctl_clone(struct

btrfs-raid questions I couldn't find an answer to on the wiki

2012-01-26 Thread Duncan
I'm currently researching an upgrade to (raid1-ed) btrfs from mostly reiserfs (which I've found quite reliable (even thru a period of bad ram and resulting system crashes) since data=ordered went in with 2.6.16 or whatever it was. (Thanks, Chris! =:^)) on multiple md/raid-1s. I have some

[PATCH] mkfs: Handle creation of filesystem larger than the first device

2012-01-26 Thread Jan Kara
make_btrfs() function takes a size of filesystem as an argument. It uses this value to set the size of the first device as well which is wrong for filesystems larger than this device. It results in 'attemp to access beyond end of device' messages from the kernel. So add size of the first device as

[PATCH] btrfs: Fix busyloops in transaction waiting code

2012-01-26 Thread Jan Kara
wait_log_commit() and wait_for_writer() were using slightly different conditions for deciding whether they should call schedule() and whether they should continue in the wait loop. Thus it could happen that we busylooped when the first condition was not true while the second one was. That is

Re: [PATCH 12/12] Btrfs: Fix file clone when source offset is not 0

2012-01-26 Thread David Sterba
On Thu, Jan 26, 2012 at 02:52:32PM +0100, Jan Schmidt wrote: I was looking at the clone range ioctl and have some remarks: On 27.01.2011 09:46, Li Zefan wrote: diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index f87552a..1b61dab 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c

[PATCH] btrfs: mask out gfp flasg in releasepage

2012-01-26 Thread David Sterba
btree_releasepage is a callback and can be passed unknown gfp flags and then they may end up in kmem_cache_alloc called from alloc_extent_state, slab allocator will BUG_ON when there is HIGHMEM or DMA32 flag set. This may happen when btrfs is mounted from a loop device, which masks out __GFP_IO

Re: [PATCH] btrfs: Fix busyloops in transaction waiting code

2012-01-26 Thread Chris Mason
On Thu, Jan 26, 2012 at 05:11:36PM +0100, Jan Kara wrote: wait_log_commit() and wait_for_writer() were using slightly different conditions for deciding whether they should call schedule() and whether they should continue in the wait loop. Thus it could happen that we busylooped when the first

Re: Will BTRFS repair or restore data if corrupted?

2012-01-26 Thread Zoiled
Stefan Behrens wrote: On 1/26/2012 9:59 AM, Hugo Mills wrote: On Thu, Jan 26, 2012 at 12:27:57AM +0100, Waxhead wrote: [...] Will BTRFS try to repair the corrupt data or will it simply silently restore the data without the user knowing that a file has been fixed? No, it'll just return

Re: Will BTRFS repair or restore data if corrupted?

2012-01-26 Thread cwillu
So if I for example edit a text file three times and store it I can get the following. Version1: I currently like cheese Version2: I currently like onions Version3: I currently like apples As far as I understand a disk corruption might result in me suddenly liking onions (or even cheese)

Re: Will BTRFS repair or restore data if corrupted?

2012-01-26 Thread Zoiled
cwillu wrote: So if I for example edit a text file three times and store it I can get the following. Version1: I currently like cheese Version2: I currently like onions Version3: I currently like apples As far as I understand a disk corruption might result in me suddenly liking onions (or even

[PATCH v1.1] btrfs: mask out gfp flags in releasepage

2012-01-26 Thread David Sterba
[fixed the silly typo in subject] From: David Sterba dste...@suse.cz btree_releasepage is a callback and can be passed unknown gfp flags and then they may end up in kmem_cache_alloc called from alloc_extent_state, slab allocator will BUG_ON when there is HIGHMEM or DMA32 flag set. This may

btrfs filesystem df command oddly named?

2012-01-26 Thread Wes
Just wondering, Why is this command called 'df' when it reports total space and used space but not free space? Wouldn't this be more aptly named 'btrfs filesystem du' ? It's been my understanding that traditionally 'df' has been to display free space remaining (as well as total available and

Re: btrfs filesystem df command oddly named?

2012-01-26 Thread Chester
On Thu, Jan 26, 2012 at 7:11 PM, Wes anomaly...@gmail.com wrote: Just wondering, Why is this command called 'df' when it reports total space and used space but not free space?  Wouldn't this be more aptly named 'btrfs filesystem du'  ? It's been my understanding that traditionally 'df' has

Re: btrfs filesystem df command oddly named?

2012-01-26 Thread Hugo Mills
On Fri, Jan 27, 2012 at 01:06:38PM +1100, Wes wrote: I don't know much of what goes on inside BtrFS, but I like to point out that btrfs fi df doesn't actually report total space on the disk, only the total space currently allocated. Good point, and this also supports the notion that